open atlas

js-engine

JavaScript Engine internals

How V8 runs your code — parsing, bytecode, hidden classes, the JIT, garbage collection, and how to stay fast.

10 units·41 lessons·~10 h

Start track
00

Start from zero

What a JS engine is, and why internals decide your app's speed.
01

How JS runs

Source becomes AST, then bytecode the interpreter runs — before any JIT.
02

Values & memory

How the engine packs numbers, pointers and objects into machine words.
03

Hidden classes & ICs

Objects with the same shape share a hidden class — that's what makes property access fast.
04

The JIT

The engine speculates on types, compiles hot code, and deopts when wrong.
05

Closures & scope

Closures capture scope into heap-allocated contexts — with a real cost.
06

Garbage collection

Generational GC bets most objects die young — invisible until it isn't.
07

Async, deeply

The event loop, microtasks and promise internals that decide execution order.
08

Measuring & optimizing

Use engine traces to keep code monomorphic and JIT-friendly.
09

Putting it together

Profile and optimize a real hot path with engine knowledge.

Build with this track

Guided projects that exercise what you learn here.

Next track

TypeScript type system, deep

From structural typing to type-level programming — generics, conditional and mapped types, and typing real systems.