Node HTTP Server

Javascript code posted by treesap
created at 14 Oct 22:35

Edit | Back
1
2
3
4
5
6
7

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

console.log('Server running on port 8080.');
191 Bytes in 6 ms with coderay