There are multiple ways to set up an array. Here we are using a very basic way of defining an array which is a varaible that can contain multiple values.
We will start out by setting up an array of New England states.
There are 6 states so I cannot refer to states to get a specific state, I have to tell it which state using an index as a pointer. The index always starts at 0 so states[0] gets Massachusetts and states[5] gets New Hampshire. If I want to know the index for a particular state, I can use indexOf I am putting most things to the console but Iam also using rslt.

If you want to be maintain the table by adding, subtracting or changing elements you can use the following. Note I also checked to make sure it was an array.