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 lesson = "Running JavaScript in the Browser Console";const priority = lesson.length > 35 ? 'high' : 'normal';console.log(priority, lesson);
<strong>Core idea:</strong> JavaScript is easier to learn once you stop treating it as one product. The language is standardized, while the host decides what APIs are available and how code is loaded. In this lesson, the practical target is running javascript in the browser console: you should be able to predict what the runtime will do before changing the code.
<strong>Core idea:</strong> JavaScript is easier to learn once you stop treating it as one product. The language is standardized, while the host decides what APIs are available and how code is loaded. In this lesson, the practical target is running javascript in the browser console: you should be able to predict what the runtime will do before changing the code.
Mentor note: for running javascript in the browser console, name the invariant you need before reaching for a clever shortcut. Clear state and explicit assumptions make later debugging much cheaper.
Finish the lesson once you have worked through the material. This awards ★ 20 XP.