Created
July 4, 2014 13:34
-
-
Save A/7f01d262a5126f33ba36 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Animal = (function() { | |
function Animal(name) { | |
this.name = name; | |
} | |
Animal.prototype.move = function(meters) { | |
return alert(this.name + (" moved " + meters + "m.")); | |
}; | |
return Animal; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Почему не так?