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

What does the expression typeof null evaluate to?

  1. undefined
  2. null
  3. objectالإجابة الصحيحة
  4. number

الشرح

The typeof operator has a specified special case for null and produces the string object. Expecting null would seem intuitive from the value's primitive category, but that is not the operator's defined result.

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

بدء التدريب
السؤال 3: What does the expression typeof null evaluate to? · JavaScript Fundamentals · Questena