Node.js First Application

var http = require("http");

var server =http.createServer(function (req, res) {
    res.writeHead(200, {'Content-type' : 'text/html'});
    res.end('<h2>Hello World</h2>');
});

server.listen(1234, function () {
   console.log('Server running.. at http://localhost:1234');
});