Learn Mode course · Beta
Learn JavaScript Inside Your Editor
TL;DR
Contral's JavaScript course teaches modern JavaScript on Node.js inside VS Code, Cursor and other editors, or the Contral IDE: 30 topics in 4 categories, from let and const to closures, promises and async/await, with an exam per category and an async CLI to-do capstone. Your code runs for real, Defense Mode checks you understood each topic, and the Basics category is free.
Beta. The JavaScript course works end to end, but its lessons may still change as we improve them. Java is Learn Mode's stable course.
The JavaScript course at a glance
- Curriculum
- 30 topics in 4 categories
- Exams and project
- 4 category exams + a capstone
- Free plan
- Basics: 9 topics + exam
- You need
- Node.js 18.17+ (optional in the extension)
JavaScript curriculum: 4 categories
Topics unlock in order. The first topic of each category needs the previous category's exam, and the capstone comes after the last exam.
1. Basics
Free9 topics, then a category exam
- Hello Node: console.log & running node
- let, const & types (typeof, null vs undefined)
- Numbers & operators, ===, floating point
- Strings & template literals
- Conditionals: truthy/falsy, ternary, switch
- Loops: for, while, for...of
- Functions: declarations, expressions, arrows, defaults
- Arrays
- Objects
Basics Exam: Corner Shop: variables, strings, conditionals, loops, functions, arrays and objects combined in one small till program.
2. Data & functions
Pro8 topics, then a category exam
- map, filter, reduce & find
- Destructuring, spread & rest
- Scope, hoisting & the TDZ
- Closures
- this, call, apply & bind
- Map & Set
- JSON
- Optional chaining ?. & nullish coalescing ??
Data & Functions Exam: Playlist Studio: array methods, destructuring, closures, this and bind, Map and Set, JSON and ?? in one project.
3. Objects & errors
Pro5 topics, then a category exam
- Prototypes & the prototype chain
- Classes: #private, static, extends
- Errors: try/catch, custom Error classes
- Iterators & generators
- Regular expressions basics
Objects & Errors Exam: Library Desk: classes with private fields, static factories, regex parsing, a custom error hierarchy and iterable objects.
4. Async & Node
Pro8 topics, then a category exam and the capstone
- Callbacks, timers & the event loop
- Promises
- async/await & Promise.all
- ES modules (multi-file .mjs)
- node:fs/promises & node:path
- process.argv, readline & stdin
- npm & package.json
- node:test & assert
Async & Node Exam: Order Pipeline: promises, async/await, Promise.allSettled, ES modules, custom errors and node:fs/promises working together.
Capstone: Async CLI To-do with JSON storage: a command-line to-do app across several ES module files: JSON persistence, pure to-do logic, a command loop and node:test tests.
How a JavaScript topic works
- 1Theory
The concept, explained.
- 2Observe
Working example code to read.
- 3Do
You write code in a practice file in your workspace.
- 4Debug
You fix broken code.
- 5Explain
You explain the code in your own words. Defense Mode grades the answer.
- 6Boss
A final challenge for the topic.
Your code runs for real. Learn Mode finds Node.js 18.17+ on your computer, runs your code and checks its output and tests. In the extension, lessons can also run on the editor's built-in Node runtime. If the tool is missing or too old, a banner shows How to install and Re-check. You can keep going in the meantime: your code is checked without running it and the result is marked Checked without running.
Defense Mode is part of every topic. It grades your Explain answers, runs a short concept check when you complete a topic, and Defend this on Do, Debug and Boss steps starts a round on your own practice code. See Defense Mode.
Topics unlock in order, and each category ends in an exam. Progress is kept separately for each language, so switching courses never resets anything.
What's free and what's Pro
Free plan
The Basics category: 9 topics, from console.log to arrays and objects, plus the Corner Shop exam.
Topics you've already started or finished stay open on the Free plan.
Pro, Pro+, Teams and all AppSumo tiers
Every category: Data & functions, Objects & errors and Async & Node, their exams, and the async CLI to-do capstone.
Where you can take the course
Contral extension
Works in VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium. Run Contral: Start Learning a Language from the Command Palette, or type /learn in the Contral chat.
Contral IDE
A desktop editor with Contral built in, in public beta. Use the Build/Learn toggle at the top of the Contral panel, or type /learn.
Want types next? The TypeScript course builds on JavaScript. See also the guide to learning JavaScript inside your IDE.
Start the JavaScript Basics for free
Install the extension or the desktop IDE, pick JavaScript in Learn Mode, and start at topic 1. Upgrade to Pro when you want the rest of the course.
JavaScript course FAQ
What does the Contral JavaScript course cover?
30 topics in four categories: Basics, Data & functions, Objects & errors, and Async & Node. Each category ends in an exam, and the course finishes with a capstone, an async command-line to-do app with JSON storage. It covers modern JavaScript (ES2022+) from let and const through closures, this, prototypes, classes, generators, promises, async/await, ES modules and node:test.
Does the JavaScript course teach the DOM or React?
No. The course teaches the JavaScript language and runs your code on Node.js, so lessons use the terminal, files and stdin rather than a browser page. Build Mode and teaching cards still work in browser and React projects.
Is the JavaScript course free?
The Basics category is free on the Free plan: 9 topics plus the Basics exam. Topics you've already started stay open. Pro, Pro+, Teams and all AppSumo tiers include every category, the other exams and the capstone.
Do I need to install Node.js?
Learn Mode looks for Node.js 18.17 or later. In the extension, JavaScript lessons can also run on the editor's built-in Node runtime when Node.js isn't installed. If no runtime is available, your code is checked without running it and marked Checked without running.
Is the JavaScript course finished?
It's in beta. The course works end to end, but lessons may still change as we improve them. Java is the stable Learn Mode course.
Where can I take the course?
In the Contral extension for VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium, and in the Contral IDE desktop app. Run Contral: Start Learning a Language, or type /learn, and pick JavaScript.
How does Contral check that I understood a topic?
Defense Mode is part of every topic. It grades your answer on the Explain step, runs a short concept check when you complete the topic, and lets you start a Defend this round on your own practice code.