Skip to content

Glossary: JavaScript Beyond the Basics

extends / super

Also written: extends, super, inheritance, parent class, child class

`extends` builds a child class on a parent, inheriting its methods. In the child, `super(...)` runs the parent's constructor and must come before any `this`, and `super.name()` calls the parent's version of a method.

Where the book teaches it

Related terms

Classinstanceof