Question d’entretien chez unico

What is the Event Loop in Node.js, and how does it work?

Réponse à la question d'entretien

Utilisateur anonyme

1 juin 2026

The Event Loop is the mechanism that allows Node.js to perform non-blocking I/O operations despite running on a single thread. It continuously checks the Call Stack and Callback Queue. When asynchronous operations like file reading, database queries, or API calls complete, their callbacks are pushed to the queue and executed when the Call Stack becomes empty.