组合继承的优化2

缺点:基本完美

      function Parent5() {
        this.name = 'parent5'
        this.play = [1, 2, 3]
      }
      
      function Child5() {
        Parent5.call(this)
        this.type = 'child5'
      }
      Child5.prototype = Object.create(Parent5.prototype)
      Child5.prototype.constructor = Child5
      
      const c51 = new Child5()
      console.log(c51)