function Cat(name) { this.name=name; }
Cat.prototype={ constructor:Cat, say:function(){ return "Hello,"+this.name+"!"; } };
Sign in to make a reply
duzengrass
function Cat(name) { this.name=name; }
Cat.prototype={ constructor:Cat, say:function(){ return "Hello,"+this.name+"!"; } };