Node.js/w3schools

From Omnia
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);