An array of possible start entries is created within the
. There are two arrays within the original array. So, there are two elements of this array which has no name.
["FOO", "http://www.com"] and
["BAR", "//domain.com"]. If the array was called
myArray we could get “foo” by accessing
myArray, and the URL by
Pretty nifty! So, a for each loop is preformed over the elements in the array, which in fact are just more arrays. This is called
a in the example above. The loop is ran for these inner elements of the larger array. Since they are called
a, they can be referenced from the inner function like I described above. So, when you see
a, it’s the iterator that’s looking for the inner array elements.
["FOO", "http://www.com"] the first time through, so
a is just
The first time through:
a is “FOO”
a is “http://www.com”
The second time through:
a is “BAR”
a is “//domain.com”
And, if you add more elements in, it will continue to iterate over them.
Hopefully this sets you on the right course!