Nodejs - Overview

I. What is Nodejs ? Nodejs is an open source, cross - platform Javacript runtime enviroment. it is used as backend service where javascript works on server -side of application. II. How does it work? There are three main components we must understand to see how Node.js works. These components are: V8 Engine Node.js run on chrome v8 engine which convert javascript code into mechine code. The V8 engine contains a memory heap and call stack. They are the building blocks for the V8 engine. They help manage the execution of JavaScript code. The memory heap is the data store of the V8 engine. Whenever we create a variable that holds an object or function in JavaScript, the engine saves that value in the memory heap. Whenever the engine is executing code and comes across any of those variables, it looks up the actual value from the memory heap. The call stack is another building block in the V8 engine. It is a data structure that manages the order of functions t...