1//How to make a variable equal a specific element in javascript.
2
3/*====DESCRIPTION STARTS HERE=======
4Assuming you've already created an array and a variable, you simply set the
5variable equal to the array, specifying the specific location of the value
6it holds. Note though that when specifying the location, subtract one
7number from the actual number we percieve. The reason for this is that computers
8begin counting at 0.
9 =====DESCRIPTION ENDS HERE========*/
10
11//=====EXAMPLE=========
12var listOfFirstNames = ["Will", "Kotori", "Grace", "James"]
13var FirstName = listOfFirstNames[2] /*firstName now has the value of "Grace"
14 since grace is the 2nd (or 3rd) element
15 of the array*/
16