i

What to use Node.js for?

How is the Node a run-time environment?

When we execute Javascript in the browser, there exists a window object for a browser on which we call a number of functionalities like setTimeOut, setInterval, console, etc

Node, on the contrary, won’t have window object, so Node provides a global object which has all those functionalities which window possessed.

That’s why we term Node.js as the runtime environment.

Why use Node.js

Node.js is written in C++ and runs on v8 engine.

V8 Engine converts javascript into machine code which computer understands.Node.js provides a set of advantages to developers

  • The easy Learning curve for front end developers.

  • Scalable applications

  • Faster execution