An array is a collection of elements.
We can initialize an empty array in these 2 different ways:
const a = 
The first is using the array literal syntax.
You can pre-fill the array using this syntax:
const a = [1, 2, 3]
An array can hold any value, even value of different types, like numbers and strings or even other arrays:
const a = [1, 'Flavio', ['a', 'b']]
You can access any element of the array by referencing its index. The first item has index zero:
const a = [1, 2, 3] a //1 a //2 a //3