in JavaScript by

What is prototypal Inheritance?

1 Answer

0 votes
by

Every object has a property called a prototype, where we can add methods to it and when you create another object from these the newly created object will automatically inherit its parent’s property

...