Discuss / JavaScript / Answer

Answer

Topic source

NotFatCat

#1 Created at ... [Delete] [Delete and Lock User]
function Cat(name) {
    this.name=name;
}

Cat.prototype.say=function(){
    return 'Hello, '+this.name+'!';
}

  • 1

Reply