Using array literals is one of the easiest ways to create a new array. That looks like this:
let variableName = [ "value1", "value2", "value3" ]
let variableName = new Array( "value1", "value2", "value3")
I think it's important to note that while I was using strings to create the values of my arrays you also have the option to use pretty many any of the other datatypes.
The next step after learning how to create an array is to learn how to access the different values in that array. This leads to another important note for beginners. You might look at the array list and assume that "value1" is going to be the first index on the list, however programmers like to start counting with zero. So it's important to know that every list item you see matches the index that is one less than its place on the list. Now that we have that out of the way here is how you access those values.
Let's say we want to access the 2nd index of our array we made earlier. We would write it like this:
This would return back to use "value3", as that is our current value as the 2nd index (or 3rd item in our list).
Thanks for reading!