extends
extends is a JavaScript function in the Class category. Inherits from another class. The syntax is class Child extends Parent. A typical example: class Dog extends Animal { }. A close sibling is class, which defines a class. A close sibling is constructor(), which creates class instances. A close sibling is super(), which calls parent constructor. A close sibling is static, which defines a static method. More about this category: Class syntax. Related Class methods: class, constructor(), super(), static, new.target. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try extends immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.