How do Node.js works?

Node.js is a virtual machine that uses JavaScript as its scripting language and runs on a v8 environment. 

It works on a single-threaded event loop and a non-blocking I/O which provides high rate as it can handle a higher number of concurrent requests. 

Also, by making use of the ‘HTTP’ module, Node.js can run on any stand-alone web server. 

Comments

Popular posts from this blog

What is promise, promise.all and promise.race? How do you chain promises?

What is an Event loop in Node.js and how does it work?