Why is this Function not running properly?

/*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;
}

The program I’m working through automatically runs the function when you save it.

The commented out section at the top pf my post is all that is provided in the problem. The declared randomNumbers array is already initialized in the question. I didn’t create it.

I think it may be a glitch in the testing program.

Ok, I’ll just do that. Thank you for the help!