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