Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 404 Bytes

inheritance.md

File metadata and controls

3 lines (2 loc) · 404 Bytes

Inheritance

JavaScript's inheritance works differently from inheritance in other languages, which can be very confusing. ES6 classes provide a syntactic sugar attempting to alleviate the issues with using prototypical inheritance present in ES5. Our recommendation is still to avoid using inheritance or at least deep inheritance hierarchies. Try solving the same problems through delegation instead.