extend object javascript es6 code example Example: javascript extend object class ChildClass extends ParentClass { ... }