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 :: random in range js 
Javascript :: js yesterday date 
Javascript :: jquery back button event 
Javascript :: how to change my npm version 
Javascript :: javascript count occurrences of letter in string 
Javascript :: js string only positive float numbers 
Javascript :: if is array javascript 
Javascript :: set up node js server express 
Javascript :: react font awesome delete icon 
Javascript :: adding event on enter key keypress in javascript 
Javascript :: how to get file name in directory node js 
Javascript :: express set views directory 
Javascript :: javascript async await for x seconds 
Javascript :: async function fetchJson 
Javascript :: unset radio button jquery by name 
Javascript :: using material ui icons in react 
Javascript :: acces vue instance from console 
Javascript :: on load hit click event js 
Javascript :: regex url 
Javascript :: delete cr 
Javascript :: convert utc time to local time moment 
Javascript :: datatables cdn file 
Javascript :: find base url in javascript 
Javascript :: drupal twig node alias 
Javascript :: passport.initialize() middleware not in use 
Javascript :: how to open link in new tab in react js 
Javascript :: react router dom 
Javascript :: replacing characters in string javascript 
Javascript :: angular generate guid 
Javascript :: selectpicker append option 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =