NODE.JS is used for JavaScript runtime and it is suited when developing applications that require some form of real-time interaction or collaboration Apps
- globally by
npm install -g jshint
- locally by
npm init -y
Node.js is used for assembling the JavaScript files. it is used as a back end to run (React and Angular) frameworks which are used for developing apps with JavaScript.
- start by requiring Node’s native HTTP module.
- use the
createServer
method to create a new web server object - call anonymous function and pass values for its two arguments
request
andresponse
.