- A Instance object
- B Constructor object
- C Destructor object
- D Prototype object
- Share this MCQ
Answer:
D
Share this MCQ
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 MCQ