Speed up development with full-stack environments for every branch.

Learn More

Hello World for Node.js

2499 Runs 4908 Views 1105 Copies

Hello world in Node.js



var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
console.log('Server listening on port 80');
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).