nanu1
0
Q:

what is node

npm install http then write a webserver...
const http = require('http');
const PORT = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World');
});

server.listen(port, () => {
  console.log(`Server running at PORT:${port}/`);
});
1
NodeJs is Runtime environment for executing Js code, Outside Of Browser.
it is build upon Chrome v8 engine using c++.

Uses of Node:

-can build back-end services like API which can be used as backend for 
diferent platform Apps(Website, MobileApp, Desktop App).

-is Asynchronous by default means Single thread handle all the request
and response, thereby providing more speed, highly scalable, built time half 
compare to other tech in market, 33% few line of code, 40% fewer files,
can handle 2times more requests/secs, 35% fast response time.
// Hope you like the short Description.
5
Node js allows you to run javascript outside of your browser
ex: you are able to run it on your terminal
15
Is a child of EventTarget
Node = DOM objects =  Attr, CharacterData (which Text, Comment, and CDATASection are all based on), ProcessingInstruction, DocumentType, Notation, Entity, and EntityReference.
function isNode(o){
  return (
    typeof Node === "object" ? o instanceof Node : 
    o && typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName==="string"
  );
}
0
/*What is Node.js?
Node.js is an open source server environment
Node.js is free
Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
Node.js uses JavaScript on the server*/
1
Javascript generally runs on Browser(Client).
An  Example Browser - Chrome, has v8 Engine, which compiles Javascript to a code the computer can understand.

Thus Node.js can run Javascript on Server with Chrome's V8 Engine.

Further Reading: https://www.freecodecamp.org/news/what-exactly-is-node-js-ae36e97449f5/
-1

New to Communities?

Join the community