What Is an Array?
An array holds many values in order.
Treasure Lists! 🗃️
Hi, treasure hunter! 🌟 What if we want to hold MANY things in one box?
We use an array — a special list that holds lots of values! 💎
let treasure = ["gold", "gem", "crown"]
console.log(treasure)A List in Brackets 📋
An array uses square brackets [ ] with values inside, split by commas.
["cat", "dog", "fish"] is a list of 3 pets! 🐱🐶🐟
let pets = ["cat", "dog", "fish"]
console.log(pets)