Tilet solution
1.32K subscribers
908 photos
49 videos
35 files
534 links
Technology is best when it brings people together.

- Matt Mullenweg
Download Telegram
What is Event Loop?
The event loop is a mechanism
that handles the execution of
asynchronous code.

The event loop concept is very simple. There’s an endless loop, where the JavaScript engine waits for tasks, executes them and then sleeps, waiting for more tasks.

The general algorithm of the engine:
1. While there are tasks: execute them, starting with the oldest task.

2. Sleep until a task appears, then go to 1.
#js
@tiletsolution