Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

first 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: #program #node #js
ADD COMMENT
Topic
Name
5+3 =