function Animal(color){
this.color=color;
}
Animal.prototype.move=function(){}
function Dog(color,name){
Aniaml.call(this,color);
this.name=name;
}
function temp(){}
temp.prototype=Animal.prototype
Dog.prototype=new temp();
Dog.prototype.constructor=Dog
Dog.prototype.say=function(){}
var dog=new Dog('黄色','宝宝')
class Animal{
constructor(color){
this.color=color
}
move(){}
}
class Dog extends Animal{
constructor(color,name){
super(color)
this.name=name
}
say(){}
}