Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hello world program in node js

var http = require("http");
http.createServer(function(req, res){
    res.writeHead("200",{"Content-Type":"text/html"});
    res.write("Welcome to NodeJs");
    res.end();
}).listen(9000)

//console.log("Hello Node Js");
 
PREVIOUS NEXT
Tagged: #world #program #node #js
ADD COMMENT
Topic
Name
4+7 =