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

What are Control Flow Statements in Javascript ?

What are Different Error Types in Javascript ?

What is Difference Between Call and Apply Methods in Javascript ?

What are Important Events in Javascript ?

What are Advantages of Using External Javascript ?