CodeTrain / Learn

JavaScript: Functions & Data

Functions are values: pass them around, return them, and capture state. Hands-on lessons where you write every line yourself and every step has to run.

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

Classes in this course

Functions & closures

1 lesson · free

Higher-order functions and the closures that give them memory.

Also coming to this course

Async JavaScript

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.

Other courses

Learn to Code in PythonObject-Oriented PythonJavaScript FundamentalsCommand the Terminal: Linux & BashHow LLMs Actually Work
Start this course free Browse every course