These are some Node JS discussion questions to deepen your understanding of NodeJS
- Differentiate between JavaScript and Node.js.
- Why Node.js is single threaded?
- How do Node.js works?
- What is package.json?
- What is an Event loop in Node.js and how does it work?
Differentiate between JavaScript and Node.js.
NodeJS is a runtime environment that allows the javascript to be run on the server-side.
Javascript is a Scripting language that is generally used for web applications
Why Node.js is single threaded?
NodeJs was built with the intention of supporting asynchronous operations.... and the fact is that the asynchronous operations have better performance and scalability when they are single-threaded over multi-threaded. This is the reason the NodeJs is single threaded.
How do Node.js works?
Node Js works on V8 engine which powers chromium based web browsers and microsoft edge. It uses event-loop.
What is package.json?
Package.json has all the installments and dependencies that we need in order to run the project.
What is an Event loop in Node.js and how does it work?
Event loop is an endless loop, which waits for tasks, executes them and then sleeps until it receives more tasks.