Stage 1 · Lesson 7 of 9
Promises and async/await
Network calls, storage reads and permission requests all return in . A Promise is a value that arrives later. It starts pending, then is either fulfilled with a value or rejected with an error.
async and await let you write that like ordinary code: const res = await fetch(url). Use Promise.all to run independent requests together. Use Promise.allSettled when you want every result even if some fail.
runs your code on one thread, so await does not freeze the app, but a long loop that never pauses does.
Common trapa forgotten await, which gives you a Promise instead of the data, and an unhandled rejection that fails quietly.
A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock
Resources for this stage
Start with· follow one of these
- CoursePaidGrokking JavaScript Fundamentals
Design Gurus · Beginner · $50
Beginner JavaScript with an exercise after most lessons
- GuideFreeJavaScript.info
Ilya Kantor
Free and thorough: Part 1 is the language, skip the browser chapters in Part 2