JavaScript Foundations
JavaScriptThe language that runs everywhere. Start from zero and write real, tested code in your browser.
Your progress
0/17 complete
- 1β‘ 10
Read the Code π Quiz
Before you write JavaScript, learn to read it.
- 2β‘ 20
Variables & Values
Store data in named boxes.
- 3β‘ 25
Numbers & Math
Add, clamp, round, and the Math object.
- 4β‘ 25
Conditionals
Make your code choose a path.
- 5β‘ 25
Boolean Logic
Combine conditions with && and ||.
- 6β‘ 10
What's a Function? π οΈ Quiz
Read a function and predict what it hands back.
- 7β‘ 25
Functions
Reusable machines that take input and return output.
- 8β‘ 30
Arrays & Loops
Work with lists of things.
- 9β‘ 30
Objects
Bundle related data together.
- 10β‘ 25
Strings
Text is data you can transform.
- 11β‘ 25
Template Literals
Build strings with embedded values.
- 12β‘ 10
Reading map() πΊοΈ Quiz
Predict what map() builds before you write it.
- 13β‘ 30
Transform with map()
Make a new array from an old one.
- 14β‘ 30
Select with filter()
Keep only the items you want.
- 15β‘ 35
Boil it down with reduce()
Collapse a list into a single value.
- 16β‘ 30
While Loops
Repeat until a condition fails.
- 17β‘ 40
Capstone: FizzBuzz
The classic interview warm-up.