Setting Prototype to Parent: Difference between Call() and New Operator

前端 未结 0 1066
广开言路
广开言路 2021-01-13 15:21

As we know, there\'s two ways to call a constructor function and set this to object:

  1. Using new operator -> new ConstructorFn(
相关标签:
回答
  • 消灭零回复
提交回复
热议问题