Q5
The meaning for Augmenting classes is that
A.
objects inherit prototype properties even in dynamic state
AnswerB.
objects inherit prototype properties only in dynamic state
C.
objects inherit prototype properties in static state
D.
None of the mentioned
Answer: Option A
Solution
Answer: Option A
Solution:
JavaScript’s prototype-based inheritance mechanism is dynamic: an object inherits properties from its prototype, even if the prototype changes after the object is created. This means that we can augment JavaScript classes simply by adding new methods to their prototype objects.