Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 53

What does [NaN].includes(NaN) return?

  1. -1
  2. undefined
  3. false
  4. trueالإجابة الصحيحة

الشرح

Array includes uses SameValueZero comparison, under which NaN matches NaN, so the result is true. Assuming the strict-equality NaN rule here applies the wrong comparison semantics to this method.

تابع هذا الاختبار

بدء التدريب
السؤال 53: What does [NaN].includes(NaN) return? · JavaScript Fundamentals · Questena