var http = require('http'); var server = http.createServer( function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.write('Hello World'); response.end(); } ).listen(2000); console.log('server lintening at http://localhost:2000/');