Foundations

Arrays

Arrays

An array stores ordered values under one name. The first item is at index 0, not index 1.

Your task: Create lessons with three lesson names. Store the first lesson in firstLesson, then log it.

Prerequisites

  • variables
  • strings

Tests

  • lessons is an array
  • lessons contains three items
  • firstLesson stores the first array item
  • the first lesson is logged
Loading...
Console

Run code to see output.