I don't understand the correct answer

The pattern is searching for the index of a number that’s strictly larger than 200 (remember it’s 0-indexed in javascript). Does it return the first number that meets the criteria? You should test this behavior yourself, as it’s useful to know how the method findIndex() works.

2 Likes

basically returns the index of the first element of an array which satisfies a condition in the callback function, 3543 satisfies that condition and the position which this condition is satisfied is at index 4.

I actually confused the .findIndex() Method with .filter() Method, sorry for that.

@toastedpitabread thank you! :relaxed: