JavaScript Lingo: Finding and Indexing Data in Arrays


There are many reasons you might need to access a certain piece of data from within a larger set, and you do that by referencing its index.

We won't get into syntax now, but you should know that the first thing in an array is actually index 0.

This goes for strings and objects, too. All of these indices start at 0, so if you're looking asking the code to find indexArr[2], you're really going to get the third piece of information in that array.