Print this article for free. We've seen that variables can hold numbers, strings, and references to objects.
Arrays are lists.
You might have a list of URLs that you want to visit, a list of names that you want to remember, or a list of colors in which you'd like text displayed. All these lists can be stored in arrays. The good thing about arrays is that elements of an array can be accessed by number. As you can see, you access the first element of an array by writing the name of the array and putting the element's number in square brackets. The second element of an array is number 1.