Node.js is a platform built on top of JavaScript v.8, Google’s JavaScript runtime engine. Node.js enables us to develop web applications that excellent in their performance.
The following code sample is a simple HTTP web server developed using node.js that returns the hello greeting back to the client from which the HTTP request arrives.
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World Friends!\n'); }).listen(process.env.PORT);
The following video clip shows how simple it is to develop in node.js when using the Cloud9 online IDE and server.