QuestenaPractice that shows what to review next
Question 3

What does the expression typeof null evaluate to?

  1. undefined
  2. null
  3. objectCorrect answer
  4. number

Explanation

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.

Continue with this test

Start practice
Question 3: What does the expression typeof null evaluate to? · JavaScript Fundamentals · Questena