This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// duck typing ( maybe all you need ) | |
var me = {name: "WebReflection"}; | |
// basic class | |
function Person() {} | |
Person.prototype.getName = function () { | |
return this.name; | |
}; | |
Person.prototype.setName = function (name) { | |
this.name = name; |
NewerOlder