Event Loop (JavaScript)
The event loop is the mechanism that lets single-threaded JavaScript handle asynchronous tasks. It runs queued callbacks once the main code has finished.
The event loop is the mechanism that lets single-threaded JavaScript handle asynchronous tasks. It runs queued callbacks once the main code has finished.