An array is a list of values. Any time you need to store a list of things that you can refer to in your code, you make an array. Each value in an array is called an element. Each element gets an index number that you use to refer to it in your code. The first index number in every array is always 0.
This code creates an empty array called places, assigns values to its first (0) second (1) and third (2) spots, then writes a sentence that refers to the third element in the array:
This code creates an array called groceries that contains three elements, then writes a sentence using the second element in the array:
Arrays can also contain numbers. This code creates an array called fibonacci that contains twelve elements, then writes a sentence using the sixth element in the array: