What is instance.constructor.constructor and how does it work?

前端 未结 0 1947
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-26 10:50
function Person(name) {
    this.name = name;
}   

let person1 = new Person("Eve");

person1.constructor; // Output: ƒ Person(name) {}

person1.constructor.co         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题