how to return a value of an arrays location js code example Example: how to get array values in javascript var valueAtIndex1 = myValues[1];