why is new^.prototype pass as the proto to Object.create(proto) in this code instead of a regular object or a regular constructor protoype?

后端 未结 0 1932
情话喂你
情话喂你 2021-01-06 03:06
 class Derived4 extends Base2 {
   constructor (a) {
      this = Object.create(new^.prototype);
      this.a = a;
    }
  isDerived4() {return true};
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题