javascript extend object with the same name code example Example: javascript extend object class ChildClass extends ParentClass { ... }