Skip to Content
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes
Intermediate
0 likes
Courses
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes

Check Yourself: Waiting for Things

Five scenario questions on timers, promises, async/await and fetch. If you miss more than one, run the examples again and watch the order of the output.

Course content

Sign in to save your progress.

Course Home
1. What prints first? console.log("A"); setTimeout(() => console.log("B"), 0); console.log("C");
2. You set a variable inside .then() and log it on the next line after the chain. It's undefined. Why?
5. You wrote const user = response.json(); and user.name is undefined. What's missing?

About

Five scenario questions on timers, promises, async/await and fetch. If you miss more than one, run the examples again and watch the order of the output.

Duration
5 min
Last update
08/25/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.