A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
| Question to ask | Good diagnostic move |
|---|---|
| What value entered? | Inspect the runtime value and type. |
| What rule applied? | Check the construct's language or host semantics. |
| What changed? | Compare the smallest working and failing cases. |
const response = await fetch('/api/tasks');if (!response.ok) throw new Error(`HTTP ${response.status}`);const tasks = await response.json();console.log(tasks);
<strong>Core idea:</strong> Browser APIs expose capabilities that the language itself does not define, including storage, navigation, timers, networking, and user-agent integration. In this lesson, the practical target is fetching data with the fetch api: you should be able to predict what the runtime will do before changing the code.
Finish the lesson once you have worked through the material. This awards ★ 20 XP.