get element from array by index javascript code example
Example 1: js get index of item in array
array.indexOf("item");
Example 2: get item in array from index
var valueAtIndex1 = myValues[1];
Example 3: arrays
//Javascript Array
var fruitList = ["Bananas", "Apples", "Oranges"]