Beginner⏱ About 40 minutes3 steps

Build a simple JavaScript app

Write a tally counter from scratch: read the page, react to clicks, keep state in a variable and remember the number between visits.

What you will build

A working interactive app and an understanding of variables, functions and events.

The steps

  1. 1
    Show the number and add one on click Unlocks as you go
  2. 2
    Make -1 and Reset work Unlocks as you go
  3. 3
    Remember the number Unlocks as you go