javascript get element from array by index 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];
array.indexOf("item");
var valueAtIndex1 = myValues[1];