JavaScript · Lesson 90 of 138
Async Quiz
Test yourself.
Let's check what you've learned about asynchronous JavaScript. Pause on each question, and try to answer before I reveal it.

- Async quiz
- Pause and think
- Then check
Question 1
What does a promise look like while its job is still running? The answer is pending.
Quick check
A promise that hasn't settled is...
Question 2
Where can you use await? The answer is inside an async function, or at the top level of a module.
Quick check
await works inside...
Question 3
Does fetch reject when the server returns four oh four? The answer is no. You must check response dot o k yourself.
Quick check
fetch gets a 404. It...
Question 4
How do you start three independent jobs together and wait for all of them? The answer is promise dot all.
Quick check
Run jobs together?
Summary
Great work. Next, a new section. JavaScript in the browser, and the DOM.
Key takeaways- Pending, fulfilled, rejected
- await in async functions
- Check res.ok
Next up: JavaScript in the Browser — pages that respond