ibm-india-rajtgin
Version:
This is my IBM Oct training module
16 lines (15 loc) • 460 B
JavaScript
/**
* Created by Raj on 10/25/2016.
*/
var http = require("http");
var server = http.createServer(function(request, response){
console.log("some request came in....");
response.writeHead(200,{
"Content-type" : "text/html"
})
response.write("<h1>hello raj</h1>");
response.end();
})
server.listen(1234,"localhost",function(error){
console.log("server is running on http://localhost:1234", error + " happend")
})