2. server.js - Hello World

Created Saturday 30 November 2013

var http = require("http");

http.createServer(function(request, response) {

response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);



Backlinks: