By inheriting from other classes, we avoid having to rewrite the same code and we also save memory space by having shared methods. Inheritance is a very important and powerful concept in JavaScript.
A NOTE FOR DEVELOPERS
By inheriting from other classes, we avoid having to rewrite the same code and we also save memory space by having shared methods. Inheritance is a very important and powerful concept in JavaScript.