QuestenaPractice that shows what to review next
Question 52

Which statements about findIndex are true? Select all that apply.

  1. It returns the first qualifying indexCorrect answer
  2. It returns undefined when nothing qualifies
  3. It returns -1 when nothing qualifiesCorrect answer
  4. It returns every qualifying index

Explanation

findIndex reports the index of the first element whose callback is truthy, and it reports -1 when none qualifies. Returning undefined is the no-match behavior associated with find, not findIndex.

Continue with this test

Start practice
Question 52: Which statements about findIndex are true? Select all that… · JavaScript Fundamentals · Questena