Hi,
I am running the following node.js code:
I found the code from: https://www.w3schools.com/nodejs/
I am executing using the command: $ node helloworld2.js
Somebody please guide me.
Zulfi.
I am running the following node.js code:
JavaScript:
var http = require('http');
http.createServer(function (req, res){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
I found the code from: https://www.w3schools.com/nodejs/
I am executing using the command: $ node helloworld2.js
Somebody please guide me.
Zulfi.
Last edited by a moderator: