Computer Science, asked by shrutishah0503, 7 hours ago


Create a Node.js file named main.js for event-driven application. There should be a main loop listens for events, and then triggers a callback function when one of those events is detected.

Answers

Answered by Anonymous
0

he event loop is what allows Node. js to perform non-blocking I/O operations — despite the fact that JavaScript is single-threaded — by offloading operations to the system kernel whenever possible. Since most modern kernels are multi-threaded, they can handle multiple operations executing in the background.

   

Similar questions