QuestenaPractice that shows what to review next
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 undefinedCorrect answer

Explanation

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.

Continue with this test

Start practice
Question 64: An ordinary object has no property named score. What does… · JavaScript Fundamentals · Questena