Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js simple server

const http = require('http');

const requestListener = function (req, res) {
  res.writeHead(200);
  res.end('Hello, World!');
}

const server = http.createServer(requestListener);
server.listen(8080);
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #node #js #simple #server
ADD COMMENT
Topic
Name
6+7 =