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

An ordinary object has no property named score. What does reading object.score produce?

  1. A ReferenceError
  2. A TypeError
  3. The value null
  4. The value undefinedRespuesta correcta

Explicación

A normal read of a missing property completes and produces undefined. A present property holding undefined can produce the same result, while a TypeError would require a different situation such as reading through null.

Continúa con este test

Empezar la práctica
Pregunta 64: An ordinary object has no property named score. What does… · JavaScript Fundamentals · Questena