Skip to main content

Level 2

Intermediate

Arrays, state, and timing

  • Arrays
  • State
  • Timers
  • Dates
  • localStorage

About this level

These projects keep track of more than one thing at a time. You'll store data in arrays and objects, keep variables that remember what the app is doing, run code on a timer, and save data in the browser so it's still there tomorrow. They're the building blocks of real apps: a photo slider, a carousel, a calculator, a countdown, a to-do list, and a live search.

Before you start

Finish the Beginner projects first, or be comfortable selecting elements and adding event listeners.

What you'll learn

  • Keep an app's state in variables, arrays, and objects
  • Loop over and reshape data with forEach, map, and filter
  • Run and stop code on a timer with setInterval
  • Work with dates and times
  • Save data in the browser with localStorage and JSON

The projects