edubun
English
Programming · 12 units · about 220 min · 126 practice questions

JavaScript

Twelve units for complete beginners, from a first console.log line to a tip calculator and FizzBuzz. Every unit has code you can edit and run in the page, practice exercises that check your output, flashcards for the terms and 10 to 12 "what does this print" questions with explanations.

Progress
Start

What you will learn

  • Follow a program one statement at a time, top to bottom
  • Calculate with + - * / % ** in the right order
  • Run a block only when its condition is true
  • Keep values in order in an array and reach them by index
  • Turn a problem into named inputs, steps and outputs

Units

  1. 1What programming is12 pages16 minExplain4Explore1Problem4Practice2
  2. 2Values and console.log13 pages16 minExplain5Explore1Problem4Practice2
  3. 3Variables: let and const12 pages17 minExplain4Explore1Problem4Practice2
  4. 4Numbers and math13 pages17 minExplain6Explore1Problem3Practice2
  5. 5Strings and template literals13 pages19 minExplain4Explore2Problem4Practice2
  6. 6Booleans and comparisons13 pages19 minExplain4Explore2Problem4Practice2
  7. 7Making decisions with if and else in JavaScript13 pages20 minExplain4Explore2Problem4Practice2
  8. 8Loops: for and while13 pages17 minExplain5Explore1Problem4Practice2
  9. 9Arrays in JavaScript13 pages18 minExplain5Explore1Problem4Practice2
  10. 10Functions13 pages21 minExplain4Explore1Problem4Practice3
  11. 11Objects13 pages18 minExplain5Explore1Problem4Practice2
  12. 12Project: tip calculator and FizzBuzz13 pages22 minExplain4Explore1Problem4Practice3

About this course

JavaScript was invented by Brendan Eich at Netscape and first appeared in the Netscape Navigator 2 browser. Work on a shared standard began in November 1996, and Ecma International adopted the first edition, called ECMAScript and numbered ECMA-262, in June 1997. The language is still updated once a year, and the 17th edition, ECMAScript 2026, was published in June 2026. Browser makers build their engines to follow that document, which is why the code you write here behaves the same way in different browsers.

One comparison trips up many beginners. 5 == "5" is true, but 5 === "5" is false, because the triple equals sign also checks that both sides are the same type. The Booleans unit explains when to reach for which.

Before you start

This course is written for complete beginners, and no other course comes first. All the code runs inside the page, so you only need a browser. Basic arithmetic helps, because many exercises ask what a calculation prints, such as 2 + 3 * 4 or a 20 percent tip on a bill of 84.

Course map

Programming · Courses: 4
Sources for this course (2)
  • MDN Web Docs, JavaScript Guide (developer.mozilla.org/en-US/docs/Web/JavaScript/Guide, chapters Introduction, Grammar and types, Control flow, Loops and iteration, Functions, Expressions and operators, Numbers and strings, Indexed collections, Working with objects; checked 2026-10-17)
  • Ecma International, ECMA-262 ECMAScript 2026 Language Specification, 17th edition, June 2026 (tc39.es/ecma262 and ecma-international.org/publications-and-standards/standards/ecma-262, checked 2026-10-17).

Checked: 2026-10-17