1NodeJs is Runtime environment for executing Js code, Outside Of Browser.
2it is build upon Chrome v8 engine using c++.
3
4Uses of Node:
5
6-can build back-end services like API which can be used as backend for
7diferent platform Apps(Website, MobileApp, Desktop App).
8
9-is Asynchronous by default means Single thread handle all the request
10and response, thereby providing more speed, highly scalable, built time half
11compare to other tech in market, 33% few line of code, 40% fewer files,
12can handle 2times more requests/secs, 35% fast response time.
13// Hope you like the short Description.
1//
2// Great choice for web development
3// Download: https://nodejs.org/en/download/
4//
1Node js allows you to run javascript outside of your browser
2ex: you are able to run it on your terminal
1const http = require('http');
2
3const hostname = '127.0.0.1';
4const port = 3000;
5
6const server = http.createServer((req, res) => {
7 res.statusCode = 200;
8 res.setHeader('Content-Type', 'text/plain');
9 res.end('Hello World');
10});
11
12server.listen(port, hostname, () => {
13 console.log(`Server running at http://${hostname}:${port}/`);
14});
15