JS Lab 4
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const http = require("http");
|
||||
const server = http.createServer((req, res) => {
|
||||
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||
res.end("Hello from Node.js Web Server! My Name is Levi");
|
||||
});
|
||||
|
||||
server.listen(3000, () => {
|
||||
console.log("Server running at http://localhost:3000");
|
||||
});
|
||||
Reference in New Issue
Block a user