class A { constructor() { this.tag = "A"; } } class B extends A { constructor() { super(); this.tag = "B"; } } console.log(new B().tag);