Beginner
JavaScript
Q23 / 100
What does Array.prototype.find() return?
Correct! Well done.
Incorrect.
The correct answer is C) The first element for which the callback returns true, or undefined
C
Correct Answer
The first element for which the callback returns true, or undefined
Explanation
[5, 12, 8].find(x => x > 10) returns 12. findIndex() returns the index. filter() returns all matches.
Progress
23/100