Node.js/w3schools

From Omnia
Revision as of 02:58, 30 January 2024 by Kenneth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

w3schools Tutorial

https://www.w3schools.com/nodejs

Hello World

var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World!');
}).listen(8080);