QuestenaUn entraînement qui indique quoi revoir ensuite
Question 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 undefinedBonne réponse

Explication

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.

Continuer avec ce test

Commencer l’entraînement
Question 64: An ordinary object has no property named score. What does… · JavaScript Fundamentals · Questena