Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Node.js Online

/* Simple Hello World in Node.js */
var http = require("http");
http.createServer(function(request, response){
    response.writeHead(200, { 'content type': 'text/plain'});
    response.end("Hello world\n");
    
}).listen(8081);

//console will print the message
console.log("server is running at https://127.0.0.1:8081/");

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.