var http = require('http'); var app = http.createServer(function(req, res){ res.writeHead(200); res.end("Hello Node.js!"); }); app.listen(80, function(){ console.log('Server started!'); });