Search
 
SCRIPT & CODE EXAMPLE
 

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");
Comment

how to create a javascript hello world program with node.js

console.log('Hello, world');// You can use apostrophes, quotation marks or tildees which are `s
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to add an event listener to a function javascript 
Javascript :: aos animation 
Javascript :: javscript assert 
Javascript :: concat 
Javascript :: how to pass function as a props in react in functional components 
Javascript :: headless ui modal 
Javascript :: how to slice array in angular 6 
Javascript :: How to Use the replace() String Method in javascript 
Javascript :: javascript check negative number 
Javascript :: mongodb findoneandupdate return new document 
Javascript :: react multiple classnames 
Javascript :: check if string Array javascript 
Javascript :: URLSearchParams for query params 
Javascript :: simple express server 
Javascript :: javascript export 
Javascript :: hide html elements 
Javascript :: random color generator 
Javascript :: create table using jade 
Javascript :: react native modal ios landscape 
Javascript :: how to pass an image path to img src in Reactjs 
Javascript :: vuejs pass all events to child 
Javascript :: React - How to export a pure stateless component 
Javascript :: expiry data of jwt token 
Javascript :: file upload nest 
Javascript :: nodejs add to array 
Javascript :: find the height of space above element using javascript 
Javascript :: react spinner 
Javascript :: Javascript Map.prototype.size 
Javascript :: Highest and Lowest 
Javascript :: ojs link contact page 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =