NodeJS: Server Instantiation

var http = require("http");

var server = http.createServer(function(request, response) {
    response.writeHead(200, {"Content-Type": "text/html"});
    
    response.end('Hello You');
}).listen(8888);

 

Tags
Subscribe to