🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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)?

  1. A.filter
  2. B.find
  3. C.map
  4. 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 →