Array Overview

The next concept we're going to focus on is Arrays. So what exactly is an array? It's an ordered set of values referred to by a name and an index. In plain english, the name is the data displayed and the index is a number given to that name. Please note that arrays are zero-indexed, meaning the first element in the array will have an index of 0, the second 1, etc. In other words, the index is one higher than you would expect it to be. Another important aspect of arrays is that JavaScript doesn't have an explicit array data type and instead uses the Array object and its methods. So let's look at an example, shall we?

Last updated