The Event Loop
Reading
The browser and JavaScript are inherently asynchronous environments. This means various tasks can be happening at the same time.
- How does the browser support this?
- How does this change how our code behaves?
The browser implements this idea in something called an Event Loop. This
video from JS Conf titled
What the heck is the event loop anyway? by Philip Roberts is a great
explanation of this idea.