in JavaScript by

What is prototypal Inheritance?

▼ Show 1 Answer

0 votes

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

Learn More with Madanswer

Related questions

+1 vote
+1 vote
asked Jul 16, 2019 in JavaScript by Indian