SOURCE

function Parent () {
  this.name ='parent'
  this.prop = 'human'
}

function Child () {
  this.name = 'child'
}

Child.prototype = new Parent()
console.log(Child.prototype.constructor)


Child.prototype.constructor = Child
console.log(Child.prototype.constructor)

let child1 = new Child()

console 命令行工具 X clear

                    
>
console