1.
What does the findIndex() method in JavaScript Array do?
It sorts the elements of an array.
It searches the array for a specified item and returns the item and its position.
It returns the index of the first element in an array that satisfies a given condition.
It returns the value of the first element in an array that satisfies a given condition.
Correct: C
The findIndex() method in JavaScript Array returns the index of the first element in the array that satisfies the provided testing function. If no elements satisfy the testing function, -1 is returned.
1 / 32