Tag prototype inheritance
Prototype Inheritance in JavaScript
Old-school way how to handle inheritance in JavaScript is so-called prototype inheritance. A lot of people don't very understand how it actually works. This technique works only with objects, there isn't anything like classes.
Prototype inheritance in JavaScript II
This article is an continuation of the Prototype Inheritance in JavaScript where I explained what is prototype and how the basics of prototype inheritance in JavaScript works. Today I'll go on with the new keyword and how to use the more advanced OOP techniques as super() etc.
Extending JS Prototypes in Non-Invasive Way
The most serious reason for not extending prototypes of things like Object or Array is that you'll break iterations. For example