Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 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 undefinedالإجابة الصحيحة

الشرح

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.

تابع هذا الاختبار

بدء التدريب
السؤال 64: An ordinary object has no property named score. What does… · JavaScript Fundamentals · Questena