What is Prototypal Inheritance in Javascript ?

Object have property called as prototype which can refer to other object.

When you want to read a property from object, and it’s missing, JavaScript automatically takes it from the prototype. This is called "prototypal inheritance".



You May Interest

JavaScript Taking the Square Root of a Number

What are Asynchronous Scripts in Javascript ?

What are Different Javascript Frameworks ?

What is go Method of History Object in Javascript ?

What is Prototype in Javascript ?