Question: how node js event loop works?
Answer: Event Loop Explained When Node. js starts, it initializes the event loop, processes the provided input script (or drops into the REPL, which is not covered in this document) which may make async API calls, schedule timers, or call process. nextTick() , then begins processing the event loop.