题解 | #继承#
继承
https://www.nowcoder.com/practice/ee1e5ee81b1c4fbb8c05a4e903621762
// 补全代码
Human.prototype.getName = function () {
return this.name
}
//2. 将"Chinese"构造函数继承于"Human"构造函数
Chinese.prototype.__proto__ = Human.prototype;
Chinese.prototype.getAge = function () {
return this.age
}

