Imagine you're keeping track of your favorite foods. With what you know so far, you'd do something like this:
const food1 = "burger";
const food2 = "omelet";
const food3 = "pancakes";
const food4 = "soup";
That's fine for four foods. But what about forty? Or the names of all 2,000 students in a school? Or every song in a playlist? You'd need thousands of variables. And how would you loop over them? You can't write food + i!
What you need is a single variable that can hold a whole list of values. In JavaScript, that's called an array.
const foods = ["burger", "omelet", "pancakes", "soup"];
console.log(foods);
It prints
[ 'burger', 'omelet', 'pancakes', 'soup' ]
An array is written with square brackets [ ], with the items (also called elements) separated by commas. One variable, four values, in a nice tidy row.
Think of an array as a train. The variable name (foods) is the name painted on the engine. Each item rides in its own carriage. The carriages are always in the same order, and each carriage has a number painted on it so you can find it.
Arrays can hold any type of value. Numbers, strings, booleans, even a mix (though mixing is usually a sign you should be using an object instead, which you'll learn in Grade 8):
const scores = [88, 92, 75, 64];
const answers = [true, false, true];
const mixedBag = ["hello", 42, true, null];
const empty = [];
console.log(scores);
console.log(answers);
console.log(mixedBag);
console.log(empty);
It prints
[ 88, 92, 75, 64 ] [ true, false, true ] [ 'hello', 42, true, null ] []