Hello Node.js

less than 1 minute read

To start with… check localhost:1234

var http = require('http');
http.createServer(function(request, response) {
  response.writeHead(200, {'Content-Type': 'text/plain'});
  response.end('Hello from Node.js!');
}).listen(1234);

Tags:

Updated: