← All JavaScript lessonsLesson 8 of 12 · ⭐ 20 XP

Treasure Lists

⭐ 0 XP · 🔥 0 day streak

An array is a list kept in one box: ["apple", "banana", "cherry"]. Items sit in order, and each has a number — its index — starting at 0. So item 0 is the first one.

Your mission: print the first fruit, print how many fruits there are, add "mango" to the list, then print the new count and the new last fruit.

Checks

    Next lesson →