QuestenaUn entraînement qui indique quoi revoir ensuite
Question 3

What does the expression typeof null evaluate to?

  1. undefined
  2. null
  3. objectBonne réponse
  4. number

Explication

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.

Continuer avec ce test

Commencer l’entraînement
Question 3: What does the expression typeof null evaluate to? · JavaScript Fundamentals · Questena