JavaScript in Browsers, Servers and Applications
- Where JavaScript runs. JavaScript began inside the browser, and today the same language also powers servers, phone apps and desktop tools.
- The engine. Every place JavaScript runs embeds an engine: a program like V8 that reads your source and executes it.
- One language, many hosts. The language is the same everywhere; each host adds its own extras, like the browser adding the page or a server adding files.
Source Code, Runtime and Execution
- Source code. Your program starts as plain text called source code: the engine reads it top to bottom, line by line.
- The runtime. The runtime is everything alive while your program runs: the engine, its memory, and the host features it can call.
- Interpreted and compiled. Modern engines compile hot JavaScript to fast machine code while it runs, so scripts start instantly and still get quick.
Before and after this level
- Before: nothing. This is where the course starts.
- Next: Level 1: JavaScript Foundations: Values, Variables and Operators, Expressions and Basic Types, Reading and Writing JavaScript.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does JavaScript: Start Here: How JavaScript Runs cover?
JavaScript in Browsers, Servers and Applications, Source Code, Runtime and Execution: 2 lessons and 6 ideas.
Is this level free?
Yes. Start Here: How JavaScript Runs is the free first level of the JavaScript course, with its checkpoint and flashcards.