Arrays Are Like a Shopping List

Store lists of data and access items by index.

Arrays hold ordered lists. The first item is index 0.

const pets = ["cat", "dog", "hamster"];
console.log(pets[0]); // cat

Use .push() to add items and .length to count them.

Try in Playground