Preguntas de Node
Preguntas de Node
TOP-100
BASIC TO ADVANCE ONE-LINER QUESTIONS
1. **What is Node.js?**
Node.js is a runtime environment that executes JavaScript code on the server-side.
2. **What is npm?**
npm (Node Package Manager) is a package manager for installing and managing Node.js packages/modules.
provides assertion functions for testing conditions and throwing errors if they fail.
79. **What are child processes and how are they managed in Node.js?**
Child processes are separate instances of the Node.js runtime, created using the `child_process` module, and they
can be managed using features like `spawn` and `fork`.
.**
The `async` module provides functions for handling asynchronous operations, simplifying control flow.
96. **What is the purpose of the `console.time()` and `console.timeEnd()` methods in Node.js?**
`console.time()` and `console.timeEnd()` are used to measure the time taken by a particular operation.
THANK YOU