get index for element in array 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];