how to get the value of an index in array js code example Example: get item in array from index var valueAtIndex1 = myValues[1];