JavaScriptGroundworkJavaScript

Step 2 of 2 · your path

JavaScript, Beginner

Start at the bottom of the ladder — what the engine does with your code before line 1 runs, why one thread is enough, and then types, values, operators and functions.

Your progress

0 / 18 done

Up next

Setup & mental model

8 min read · 1 exercise

The order I'd read them in

About 2 h 33 min of reading. Tick off what you've read, it is remembered on this device.

  1. Setup & mental modelThe layer everybody skips — and it shows in interviews.
    8 min read1 exercise
    1 exercise
  2. Execution contextWhat JavaScript does with your code before it runs a single line of it.
    11 min read2 exercises
    2 exercises
  3. var, let and constThree keywords, four questions they answer differently — where a name lives, when you can touch it, whether it can change, and whether you can declare it twice.
    14 min read2 exercises
    2 exercises
  4. ScopeWhich names a line of code can see, why that is decided by where you wrote it, and how JavaScript finds a name — for reading and for writing.
    15 min read2 exercises
    2 exercises
  5. One thread, one stackWhy JavaScript can only do one thing at a time — and how it still does ten.
    10 min read2 exercises
    2 exercises
  6. Inside the browserFrom a script tag to pixels on screen — and where your code sits in that.
    8 min read2 exercises
    2 exercises
  7. Types & valuesEight types, one conversion table, and the equality check that never stops mattering.
    9 min read3 exercises
    3 exercises
  8. Strings, numbers & MathThe everyday toolbox every other chapter quietly assumes you already have.
    5 min read3 exercises
    3 exercises
  9. Operators & flowEvery operator here has an interview question hiding behind it.
    11 min read1 exercise
    1 exercise
  10. FunctionsA function is a value first, a block of code second.
    7 min read2 exercises
    2 exercises
  11. Objects & arraysThe two shapes almost everything you build is made of.
    8 min read2 exercises
    2 exercises
  12. The this keywordNot where it was written — who called it.
    6 min read2 exercises
    2 exercises
  13. ClosuresThe function that walked out with its birthplace still attached.
    8 min read2 exercises
    2 exercises
  14. DOM & eventsThe DOM is a live tree of objects — and JS can poke every branch of it.
    7 min read2 exercises
    2 exercises
  15. Callbacks, then promisesHanding work to someone else, and getting the answer back later.
    9 min read3 exercises
    3 exercises
  16. Errors & toolsThe last lesson before the beginner project — reading what the engine is trying to tell you.
    6 min read2 exercises
    2 exercises
  17. Guided project: build a to-do appEverything from the beginner chapters, in one small thing that works.
    5 min read2 exercises
    2 exercises
  18. The cheat pageNot another lesson — the night-before-the-interview skim of the other 38.
    6 min read

Practice at this level

Every exercise opens in the editor with tests you can run.