
Prototypical Inheritance in JavaScript
Prototypical inheritance is one of the core concepts in JavaScript. But at the same time it is considered as one of the tough topics to understand. Even the experienced JS developers fall short in confidence while dealing with inheritance/prototypical inheritance in JS. But to be honest, prototypical inheritance doesn't have any room for ambiguity , and it's pretty straightforward to understand. In this post, I will deep dive into the core concepts of JS related to prototype . What exactly is a prototype ? What is the role of the new keyword in prototypical inheritance, and why is this inheritance called prototypical inheritance ? Internal working and ES6 updates regarding prototypical inheritance. Table of Contents The Confusion new keyword and its role in prototypical inheritance Objects in JS Inheritance chain (instance and static) ES6 updates The Confusion: The biggest confusion that almost everyone faces while trying to understand the prototypical inheritance is the word prototype
Continue reading on Dev.to
Opens in a new tab




