Programming Academy
Learn JavaScript, the language of the web: first the language itself (variables, decisions, loops, functions, arrays and objects), then make real web pages respond to clicks and typing, and build games and apps.
55 lessons, about 350 minutes so far · the first 3 lessons free
55 lessons
What JavaScript is, your first programs with console.log, words and numbers, comments, and reading the errors JavaScript shows when something's wrong.
Keep values with let and const, work with numbers and text, build messages with template literals, and read answers with prompt().
Let a program choose: if and else, comparing with === and !==, combining conditions with &&, || and !, else if, switch and the ? : operator.
Repeat things without copying lines: for and while loops, do-while, break and continue, and loops inside loops.
Make your own functions: parameters and return values, arrow functions, default values, scope, and functions that call themselves.
Keep lists of values: push and pop, for...of, finding and including, then map, filter and reduce, and sorting.
Group values with objects: keys and values, methods, arrays of objects, then classes, constructors and extends.
Bring web pages to life: link script.js, find elements with querySelector, change their text, style and classes, and add new ones.
Make pages respond: click events, reading what's typed in a box, forms that don't reload, and keys.
Make things appear: lists made from arrays, removing and updating items, a to-do list, and timers with setTimeout and setInterval.
Put it all together in small apps you can show: a counter, a quiz, a guess-the-number game, a tip calculator and a stopwatch.