Discuss / JavaScript / 练习题

练习题

Topic source

function Cat(name) {

    this.name = name;

}

Cat.prototype.say = function(){

    return 'Hello, ' + this.name + '!';

}

人傻了,还有个空格,看半天


  • 1

Reply