Learn / JavaScript Fundamentals

Values & arrays

The data structures you'll touch in every JavaScript program. A class in JavaScript Fundamentals. Free to start, no card.

Start free, no card 10 lessons a month on the free tier.

Curated lessons in this class

JavaScript: array methods

javascript · 4 steps · free

map, filter, and reduce without a loop in sight.

  1. console.log
  2. map
  3. filter
  4. reduce

Start this lesson

The bug a passing test cannot see

javascript · 4 steps · free

A function returns the right answer and still corrupts your data.

  1. Prove the damage
  2. Fix it without changing what it returns
  3. Write the check that would have caught it
  4. The same trap, somewhere else

Start this lesson

Also coming to this class

Variables & typesObjects

How CodeTrain teaches this

No videos and no multiple-choice quiz at the end. Each lesson is a handful of small steps in a real editor. You type the code yourself, it runs, and the tutor reviews what you actually wrote. It will not hand you the answer, and the step doesn't advance until your code passes. What you get at the end is a record of which steps you wrote unaided, not a completion percentage.

These curated courses are the starting point, not the product

Everything in this catalog is a curated course we wrote by hand. They exist so there is something to start on. What CodeTrain actually does is build a lesson on demand: name any topic you want to understand and it writes one for you on the spot, or paste any public repository and it teaches you that codebase from the code that is really in it. You are not limited to the list below, and most people stop using it within a session or two.

Start this class free Browse every curated course