Visualizing the event loop is the best way to understand it. JS Tutor does not do this, and the debugger does not have a good visual for the event loop. To begin wrapping your head around the
- Watch some videos about the event loop:
- Coding Nomad - short clear example
- Java Brains - restaurant analogy
- Loupe (and Cloud Path, an example in Loupe)
- In the Loop another full talk with visuals.
- Study some examples in JSV 9000 (the examples in this folder)
- Studying them in JSV 9000 will help see the event loop in action
- JSV 9000 is a visualization tool inspired by Loupe, but is more complete and reliable
- Study the examples in
/isolate- They will go deeper into timeouts, promises and async/await
/isolateexamples can only be studied in the debugger, not JSV 9000