← Quiz: Functions, Arrays and Objects: all 10 questions
Quiz: Functions, Arrays and Objects · Question 5 of 10
Which method returns the FIRST matching element (or undefined)?
Which method returns the FIRST matching element (or undefined)?
- A.filter
- B.find
- C.map
- D.some
Answer & explanation
Correct answer: find
find returns the element itself; filter returns an array; some returns a boolean.
Can you get the rest right without peeking?
Take the timed Quiz: Functions, Arrays and Objects quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →