const http = require("http"); const PORT = 3001; const server = http.createServer((req, res) => { res.writeHead(200, { "Content-Type": "text/html" }); res.end(` My Node App

Hello from Node.js!

This application is running on Windows 10.

`); }); server.listen(PORT, () => { console.log(`Server running at http://localhost:${PORT}`); });