Module 5 · 6 lessons · ~2 hrs
Asynchronous JavaScript
Callbacks, promises from scratch, async/await, error handling, and the event loop that powers it all.
5.1
JavaScript Callbacks and the Pre-Promise Era: Why Async Needed Promises
Read
5.2
Build a JavaScript Promise from Scratch: How `then`, Chaining, and Microtasks Actually Work
Read
5.3
JavaScript async/await Explained: How It Really Works (and How to Use It Well)
Read
5.4
JavaScript Error Handling Patterns: try/catch, Result Types, and async/await
Read
5.5
The JavaScript Event Loop, Microtasks vs Macrotasks (with Timing Examples)
Read
5.6
JavaScript Execution Context and the Call Stack: The Mental Model You Need
Read