event loop
RU: цикл событий
The mechanism that runs callbacks: a callback queue plus a loop that, whenever the call stack is empty, takes the front callback off the queue and runs it to completion. Ensures synchronous code finishes before any callback runs.