Description
Coding
JavaScript: beginner to advanced
Build JavaScript skills through 40 lessons, from your first program to asynchronous workflows, modules, interactive pages, and tested projects.
Build reliable foundations with values, collections, decisions, loops, and functions.
- 1
Your first JavaScript message
Display text and read a program from top to bottom.
8 min
- 2
Names and values
Use const for a fixed binding and let for a value that changes.
8 min
- 3
Calculate a total
Use numeric values and arithmetic to calculate a shopping cost.
8 min
- 4
Build a message
Combine text with values and use common string methods.
8 min
- 5
Compare values
Create true or false results with strict comparisons and logical operators.
8 min
- 6
Make decisions
Choose which instructions run with if and else.
8 min
- 7
Work with arrays
Store an ordered collection and access or add items.
8 min
- 8
Repeat with loops
Use for...of to process each item and accumulate a total.
8 min
- 9
Describe data with objects
Group related values under named properties.
8 min
- 10
Reusable functions
Declare a function with parameters and return a calculated value.
8 min
- 11
Transform and filter arrays
Use arrow functions with map() and filter() to process a collection.
8 min
- 12
Project: a shopping receipt
Combine objects, arrays, loops, and functions in a small working program.
15 min
- 13
Template literals
Build readable messages with embedded values and expressions.
9 min
- 14
Missing values and defaults
Handle null and undefined without replacing valid zero or empty-string values.
9 min
- 15
Destructuring values
Read object properties and array items into named variables.
9 min
- 16
Spread and rest
Copy a collection and collect an unknown number of arguments.
9 min
- 17
Find and test array items
Find one matching value or test whether some or all values meet a condition.
9 min
- 18
Sort numbers deliberately
Use a numeric comparator and preserve the original array when needed.
9 min
- 19
Counted loops and while loops
Repeat a known number of times or continue until a condition becomes false.
9 min
- 20
Project: a study plan
Combine filtering, totals, and message formatting to summarize a plan.
9 min