javascript Programming Glossary: messageclass
Setting methods through prototype object or in constructor, difference? http://stackoverflow.com/questions/422476/setting-methods-through-prototype-object-or-in-constructor-difference the methods say_hello and say_bye both work fine function MessageClass this.say_bye function alert 'see ya' MessageClass.prototype.say_hello.. function MessageClass this.say_bye function alert 'see ya' MessageClass.prototype.say_hello function alert 'hello' x new MessageClass.. function alert 'hello' x new MessageClass x.say_hello x.say_bye javascript constructor prototype share..
|