I was taking the multiple choice quiz for the Iterators lesson and was given the following code:
const randomNums = [1, 123, 25, 90, 3543, 42];
const foundElement = randomNums.findIndex(num => num > 200);
It is capable of understanding num even when it wasn’t’t declared. This has happened in other questions as well, when a variable is declared as a plural word, but yet it is able to comprehend the singular version of that variable name. Why is that?