Skip to content

Instantly share code, notes, and snippets.

Avatar

crimelabs786

View GitHub Profile
View .js
const http = require("http");
const port = process.env.PORT || 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
const msg = 'Hello Node!\n'
res.end(msg);
});