Which Node.js feature can help in improving the performance of CPU-bound tasks?
- Event Loop
- Callback Hell
- Cluster Module
- Promises
The Cluster Module in Node.js allows you to create child processes and distribute CPU-bound tasks across multiple cores, thus improving performance. The Event Loop and Promises are more related to handling I/O-bound operations and asynchronous programming, while "Callback Hell" is not a Node.js feature.
Loading...
Related Quiz
- In JavaScript, the ______ method is used to iterate over all enumerable properties of an object.
- How can you send JSON data as a response using the http module in Node.js?
- You are developing a RESTful API using the http module and need to support CORS. How would you implement CORS headers to handle pre-flight requests in your HTTP server?
- The spread operator can be used to merge two ______ into a new one, combining their properties.
- What is the importance of the order of middleware in the Express app's middleware stack?