/*Create a function called indexFinder that will loop over an array and
return a new array of the indexes of the contents e.g. [243, 123, 4, 12] would return [0,1,2,3].
Create a new variable called ‘indexes’ and set it to contain the indexes of randomNumbers.
( I keep getting an error that indexes is not defined)*/
let randomNumbers = [1, 3453, 34, 456, 32, 3, 2, 0];
function indexFinder(arr) {
var indexes = [];
for (i=0; i<arr.length; i++) {
indexes.push(i);
}
return indexes;
}