Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Once we've created an array, we'll inevitably want to retrieve or change the value of its elements. To do so, we use the array access operator, [].
To access an individual element, we provide a reference to the array followed by the element's index within square brackets, as follows: