Why Code Can't Stop and Wait
JavaScript runs one line at a time on one thread, so code that stands and waits freezes the whole page; asynchronous code starts a wait, carries on, and finishes the job later.
Updated

- Category
- JavaScript
- Level
- Apprentice
- Tags
- Asynchronous Code, Blocking Code, JavaScript, JavaScript Runtime, Synchronous Code