JavaScript MCQ Javascript Classes MCQ Question #5005
Single Choice Easy

QAll instances of the class inherit its attributes from this object, which also has properties whose values are functions that act as the class' instance methods.

ID: #5005 Javascript Classes MCQ 153 views
Question Info
#5005Q ID
EasyDifficulty
Javascript Classes MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Instance object
  • B Constructor object
  • C Destructor object
  • D Prototype object
Correct Answer

Explanation

The properties of the prototype object in a JavaScript class are inherited by all instances of the class. This means that the properties are shared by all instances and can be accessed using the . notation.
Properties whose values are functions behave like instance methods of the class, which means that they can be called on instances of the class using the . notation.

Share This Question

Challenge a friend or share with your study group.