A Beginner's Guide to Wrangling Asynchronicity in JavaScript
summary
Shows how to turn callback-style code into real promises by wrapping older APIs (example: a geolocation wrapper that calls resolve/reject), demos with a 2s setTimeout to simulate async, and use of fetch for Star Wars data. Covers Promise utilities like Promise.all vs allSettled/any/race, explains the gotcha that await only works inside async functions, and recommends plain for-loops for async iteration. Example code lives on GitHub/CodePen and the patterns demonstrated work end-to-end.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker intro
- 3:53The problem with async code
- 7:02Callbacks and their limitations
- 14:24Introducing Promises
- 23:47Creating custom Promises
- 27:22Wrapping legacy APIs with Promises
- 31:52Promise methods like all and race
- 35:06Async/await introduction
- 41:25Async/await in practice
- 46:03Tips and resources for async JavaScript
- 48:13Q&A








