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()