function Human(name) {
this.name = name
this.kingdom = 'animal'
this.color = ['yellow', 'white', 'brown', 'black']
}
Human.prototype.getName = function(){
return this.name;
}
function Chinese(name,age) {
Human.call(this,name)
this.color = 'yellow'
this.age = age
}
function Mid(){}
Mid.prototype = Human.prototype;
Chinese.prototype = new Mid();
//Chinese.prototype = Object.create(Human.prototype);
Chinese.prototype.constructor = Chinese;
Chinese.prototype.getAge = function(){
return this.age;
}