You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
344 B
JavaScript

const http = require("http");
const hostname = "127.0.0.1";
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader("Content-Type", "text/plain");
res.end("Hello Worldyy bro");
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});