Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There are a few more rules that will help us get the data we need, format it correctly, and get it onto our web pages.
You can create new arrays using the array keyword, similar to JavaScript.
You can access the array values using the index of the item, in square brackets [ ], like JavaScript. They are also zero-indexed, like JavaScript.
Arrays can also be associative, which means you can use a key to access the item in the array, instead of the index. These are called key/value pairs.
To assign a value to a key in an associative array, you use the => operator.