return index value from array based on value code example Example: get item in array from index var valueAtIndex1 = myValues[1];