var http = require('http'),
PORT = 3400;
http.createServer(function(req, res){
var body = "
Haruskah belajar Node.js?
...Yo Kudu! :D
"
res.writeHead(200, {
'Content-Length':Buffer.byteLength(body),
'Content-Type':'text/html',
'Pesan-Header':'Pengenalan Node.js'
});
res.write(body);
res.end();
}).listen(PORT);
console.log("Port "+PORT+" : Node.js Server...");