This article is part of a series on the JavaScript event loop.




In the previous article, we established that


JavaScript executes synchronously inside a task, and nothing can interrupt that execution.


This explains why timers don't cut in, why promises wait and why loops block everything else. But if JavaScript runs 'inside a task', where...