const http = require("http");
const fs = require("fs");
const server = http.createServer((req,res)=>{
res.statusCode = 200;
res.setHeader("Content-Type","text/html");
res.end("vishal");
});
server.listen(80,'127.0.0.1',()=>{
console.log("The port is listening");
});
Thanks you for commenting your questions. I will see question and respond you.