JavaScript Class_inheritance Guide
Class inheritance with extends and super for building hierarchies from base classes. The guide walks through Extending Classes. `class Admin extends User { constructor(name, role) { super(name); this.role = role } }`. Call super() before using this. Override methods: same name in child. super.method() calls parent method. `instanceof` checks inheritance chain. Mixins: combine behaviors by composing classes. Favor composition over deep inheritance chains. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.