There are several inheritance-related topics in JavaScript:
Constructor functions - constructors as factories for instances, similar to classes in other languages.
Constructor prototype property - prototypical inheritance.
prototype
constructor property - reference to constructor function.
constructor
instanceof operator - checking prototype chain.
instanceof
Enforce usage of new - how to guarantee that constructor function called with new.
new
Last updated 5 years ago