Extend an existing ES6 class. super() references the parent class constructor.
#javascript#es6
classParentClass{constructor(){// Constructor code}foo(){// Foo function code}}// Extend ParentClassclassChildClassextendsParentClass{constructor(){// Super references the ParentClass constructor super()}// Add here methods for the ChildClass}