getting an element from index js code example
Example 1: how to get the index of an array in javascript
search = (arr, item) => { return arr.indexOf(item); }
Example 2: get item in array from index
var valueAtIndex1 = myValues[1];
search = (arr, item) => { return arr.indexOf(item); }
var valueAtIndex1 = myValues[1];