Created
May 9, 2016 11:44
-
-
Save tonini/23e92717997b07c86dac505243f6ea6a 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
(function(){ | |
var Duelyster = function () { | |
this.name = "Samuel"; | |
}; | |
Duelyster.prototype.hi = function () { | |
alert(this.name); | |
}; | |
var main = function () { | |
var duelyster = new Duelyster(); | |
duelyster.hi(); | |
}; | |
main(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment