Basic JavaScript
Make web pages work with JavaScript: learn the language in the console (values, conditions, loops, functions, arrays, objects), then put it in the page: reading and changing it, events, forms, saving data, timers and data from a server. Exercises run right in the browser and are checked the way a real user clicks and types. Basic HTML & CSS first is recommended. For learners from grade 6 and adult beginners.
- Beginner
- About 20 hours
- 15 sections
- 76 lessons
This course has no free seats left. It is part of MMA membership, which opens every MMA course in the Academy.
Membership giveaway
MMA is giving away 50 6-month memberships that open every course in the Academy. Sign in and take one with a single press.
49 of 50 seats left
Take a seat in the Academy
Course outline
Section 1
Getting started
What JavaScript is, and how this course works
Lesson · 8 min
Your first line of code
Lesson · 6 min
When code breaks
Lesson · 10 min
Section 2
Values and variables
Values: numbers, text, true or false
Lesson · 8 min
Variables: naming a value
Lesson · 10 min
Practice: your first functions
Practice · 20 min
Project: a small receipt
Practice · 10 min
Section 3
Conditions
Comparing: true or false
Lesson · 8 min
if, else if, else: picking a path
Lesson · 10 min
Short forms and defaults
Lesson · 8 min
Practice: making decisions
Practice · 30 min
Project: a parking fee
Practice · 15 min
Section 4
Loops
Repeating with for
Lesson · 8 min
while and for…of
Lesson · 10 min
When loops go wrong
Lesson · 8 min
Practice: repeating
Practice · 35 min
Project: a vote chart
Practice · 15 min
Section 5
Functions
Writing your own functions
Lesson · 10 min
Names inside a function
Lesson · 8 min
Functions are values too
Lesson · 8 min
Advanced: functions that remember (closures)
Lesson · 10 min
Practice: writing functions
Practice · 35 min
Project: a taxi fare
Practice · 20 min
Section 6
Arrays
Arrays: a list in order
Lesson · 10 min
map, filter, find: asking the whole array at once
Lesson · 12 min
sort, and two names for one array
Lesson · 10 min
Practice: arrays in everyday life
Practice · 35 min
Project: a game leaderboard
Practice · 15 min
Section 7
Objects and JSON
Objects: one thing, many properties
Lesson · 10 min
An array of objects: a small table
Lesson · 12 min
JSON, and copying or sharing
Lesson · 10 min
Practice: named data
Practice · 35 min
Advanced: reduce into an object
Practice · 10 min
Project: a shopping cart
Practice · 15 min
Section 8
Text, numbers and errors
Working with text
Lesson · 10 min
Numbers from text, and numbers people can read
Lesson · 12 min
When things go wrong: try, catch, throw
Lesson · 12 min
Practice: text, numbers and errors
Practice · 40 min
Part 1 project: a bill splitter
Practice · 30 min
Section 9
The DOM: reading and changing the page
Finding elements and changing their text
Lesson · 10 min
Classes, attributes and hiding
Lesson · 10 min
Making elements: a list from an array
Lesson · 10 min
innerHTML and text people type
Lesson · 4 min
Practice: changing the page
Practice · 30 min
Components: a profile card and a gallery
Practice · 25 min
Project: the toy shop page
Practice · 25 min
Section 10
Events
Listening for a click
Lesson · 8 min
The event object
Lesson · 8 min
Bubbling and delegation
Lesson · 10 min
Practice: buttons, text boxes and keys
Practice · 40 min
Components: tabs, an accordion, a dialog
Practice · 30 min
Project: Rock, paper, scissors
Practice · 30 min
Section 11
Forms
Reading what people type
Lesson · 8 min
Submitting a form
Lesson · 10 min
Checking what was typed
Lesson · 10 min
Practice: forms that work
Practice · 35 min
Project: the fun run registration
Practice · 30 min
Section 12
State, rendering and saving
One state, one render
Lesson · 10 min
Saving across a reload
Lesson · 10 min
Practice: state and saving
Practice · 40 min
Project: a to-do list
Practice · 35 min
Section 13
Timers, async and fetch
Timers: doing something later
Lesson · 8 min
Practice: timers
Practice · 25 min
Waiting for data: promises, async and await
Lesson · 12 min
Loading, error, empty; and waiting for typing to stop
Lesson · 6 min
Advanced: the order of things
Practice · 10 min
Practice: data from a server
Practice · 35 min
Project: a weather card
Practice · 40 min
Section 14
Final project
Final project, part 1: the catalogue from the server
Practice · 25 min
Final project, part 2: filter and search
Practice · 20 min
Final project, part 3: the cart
Practice · 30 min
Final project, part 4: remembering the cart
Practice · 20 min
Final project, part 5: placing the order
Practice · 30 min
Extra project (optional): a memory game
Practice · 40 min
Section 15
Final exam
Final exam
Quiz · 30 min
After the exam
Lesson · 5 min
