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