Demo entry 1487252

Node.js Web Server


Submitted by anonymous on Apr 21, 2015 at 06:23
Language: JavaScript. Code size: 253 Bytes.

var http = require('http');

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

console.log('Server running at');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).