Part–6 Practical 5 : BASIC JQUERY, AngularJS and NodeJS

What is Node.js?


Node.js is an open source, cross-platform runtime environment for developing server-side and 
networking applications. Node.js applications are written in JavaScript, and can be run within the 
Node.js runtime on OS X, Microsoft Windows, and Linux.
Node.js also provides a rich library of various JavaScript modules which simplifies the
development of web applications using Node.js to a great extent.

Sample Code:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.end('Hello World!');
}).listen(8080);



 Command For Run:

  C:\Users\Hp>cd desktop

  C:\Users\Hp\Desktop>node simple.js

Output Of Program: