โจ JavaScript for kids
JavaScript is the language every web page is made of. This track covers let, strings, if, loops, arrays, objects and functions โ written and run in the browser, with nothing to set up.
- 10 units
- 53 lessons
- 309 exercises
- Units 1โ2 free
- Ages 8โ15
How this track is kept honest
Code runs in a sandboxed worker with the network switched off, and the console output a lesson claims comes out of the same formatter the app itself uses โ so a lesson can never promise [1,2,3] while the screen shows something else.
Best after Python, or after any first language. No installing, no setup โ it runs in a browser tab.
How it starts
JavaScript says console.log instead of print. Lines usually end with a semicolon ;. Everything else feels familiar.
The full JavaScript syllabus
10 units and 53 lessons, in the order they are played. Each unit has a page of its own with every explanation in it, the code samples and what they print, and a few questions to try.
Unit 1: Hello, JavaScript
Same ideas, new spelling
- console.log
- let & const
- Curly Braces
- And, Or, Not
- Loop Master
Unit 2: Functions & Loops
Teach the computer new words
- Making Functions
- Sending Answers Back
- Arrow Functions
- Keep Going Until
- Function Factory
Unit 3: Arrays
Lists that do tricks
- Lists, JavaScript Style
- Growing Arrays
- Walking Through
- Array Superpowers
- Array Master
Unit 4: Words, Objects & Maths
Model real things
- Text Tools
- Objects
- Objects in Arrays
- Numbers & Maths
- Data Wrangler
Unit 5: Types & Choices
What kind of thing is this?
- What Type Is It?
- Changing Types
- Truthy & Falsy
- switch
- Type Detective
Unit 6: Scope & Shortcuts
Where names live
- Where Names Live
- Default & Extra Arguments
- Spreading Out
- Unpacking
- Functions That Remember
- Shortcut Champion
Unit 7: Classes
Blueprints for things
- Your First Class
- Methods & this
- Getters, Setters & Static
- Inheritance
- Many Shapes
- Class Champion
Unit 8: Sets, Maps & JSON
Better boxes for data
- Sets
- Maps
- Sorting & Object Tools
- JSON
- Collection Champion
Unit 9: When Things Go Wrong
Catch it, do not crash
- Reading Errors
- throw & finally
- Your Own Error Types
- Checking with Patterns
- Safety Net
Unit 10: Waiting & The Web
Code that finishes later
- Callbacks
- Promises
- async & await
- One Thing At A Time
- The Page
- Web Ready
Other things to learn
- ๐ Python for kids
The friendliest first language. Start here!
- โ๏ธ C programming for kids
How computers really work. Read, predict and reason about real C.
- ๐ C++ for kids
C with the sharp edges filed off. Powers most games.
- ๐ Digital logic for kids
Start with one tiny switch. Finish with a working computer.
- ๐ฑ Git and version control for kids
Save your work forever, and share it.
- ๐ง Linux and the command line for kids
Drive a whole computer by typing.
- ๐ข Problem-solving maths for kids
Powers, shapes, chances and proof โ the way problem solvers see them.
- ๐ค AI and machine learning for kids
Teach a computer to learn โ with nothing but adding and multiplying.
- ๐ค Robotics coding for kids
Write code that drives a machine around a room.
- ๐ Competitive programming for kids
Win the race. The algorithms that beat the clock.