const http = require("http"); const PORT = 3002; const server = http.createServer((req, res) => { res.writeHead(200, { "Content-Type": "text/html" }); res.end(`
Welcome, This application is running on Windows 10.
`); }); server.listen(PORT, () => { console.log(`Server running at http://localhost:${PORT}`); });