The Console and Runtime
Run JavaScript in browser tools, read errors, and distinguish the language from its host environment.
Lesson introduction
JavaScript needs a runtime. The browser supplies the DOM, events, storage, timers, and developer tools around the ECMAScript language. Learning which layer owns an API prevents many confusing errors.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Create a runtime report that logs grouped values, a small table, and whether the DOM is available.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.