Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 52

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

  1. It returns the first qualifying indexپاسخ درست
  2. It returns undefined when nothing qualifies
  3. It returns -1 when nothing qualifiesپاسخ درست
  4. It returns every qualifying index

توضیح

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.

ادامهٔ این آزمون

شروع تمرین
سؤال 52: Which statements about findIndex are true? Select all that… · JavaScript Fundamentals · Questena