QuestenaPráctica que te muestra qué repasar después
Pregunta 3

What does the expression typeof null evaluate to?

  1. undefined
  2. null
  3. objectRespuesta correcta
  4. number

Explicación

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.

Continúa con este test

Empezar la práctica
Pregunta 3: What does the expression typeof null evaluate to? · JavaScript Fundamentals · Questena