Prototypal Inheritance
An object(Child) getting accessed to properties and functions of another object(Parent).
Last updated
Was this helpful?
An object(Child) getting accessed to properties and functions of another object(Parent).
Last updated
Was this helpful?
In JavaScript, Array and Functions are inherited from Object.
we can see the parent object using __proto__
property.
for more details check here.