

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: JavaScript Runtimes
incomplete
2: Node.js
incomplete
3: NPM
incomplete
4: DOM
incomplete
5: ECMAScript
incomplete
6: Polyfills and Transpilers
incomplete
This lesson's interactive features are locked, please to keep using them
A runtime environment is where your program runs. The runtime you choose will determine things like:
What APIs are available to your code (fetch, canvas, etc.)
How your code is executed (JIT compiled vs interpreted)
What dependencies you'll need in production
Whether you run on the backend (a server) or frontend (a browser or mobile app)
The browser (we try to pretend they're the same, but in reality different browsers are different runtimes)
A web worker within a browser
Originally, JavaScript only ran in browsers. Today, it runs almost everywhere.
If you're doing frontend web development, congratulations, you're using the browser. You likely have to support all the major browsers, so you'll need to know what APIs are available in each.
If you're doing backend development, you get to choose. Node.js is the oldest and most popular, Deno and Bun are newer and less mature, but have some cool features (like native TypeScript support) and claim to be faster. In reality, they're all very similar to work with. You don't need to "learn" a runtime to be able to work with it, if you understand JavaScript, you can work with any of them.