Ans : Node.js is a cross-platform runtime environment and library for running JavaScript applications outside the browser. It is used for creating server-side and networking web applications. It is open source and free to use.
The definition given by its official documentation is as follows:
Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Many of the basic modules of Node.js are written in JavaScript. Node.js is mostly used to run real-time server applications. Node.js also provides a rich library of various JavaScript modules to simplify the development of web applications.
Ans: Node.js uses asynchronous programming!
A common task for a web server can be to open a file on the server and return the content to the client.
Here is how PHP or ASP handles a file request:
Here is how Node.js handles a file request:
Node.js eliminates the waiting, and simply continues with the next request. Node.js runs single-threaded, non-blocking, asynchronous programming, which is very memory efficient.
Following is a list of some important features of Node.js that makes it the first choice of software architects.
That’s it in this page. Check out next chapter of nodejs series here: 02 – How to install node js ?
This is where we share our knowledge and insights. Our aim is to impart industry insights to help our website visitors take away valuable information.
Explore More Blog ⟶