Question: Which statement is true about Node.js and threads?
- Every Node process runs in a single thread, and all the I/O work is run in that same thread.
- Every Node process gets four threads that it can share between its JavaScript VM and the event loop.
- The event loop is single-threaded, but a JavaScript VM can use multiple threads.
- JavaScript execution in Node.js is single-threaded, but I/O operations are executed using multiple threads.
Answer: The correct answer of the above question is Option C:The event loop is single-threaded, but a JavaScript VM can use multiple threads.