Created
November 19, 2012 23:37
-
-
Save Seasons7/4114874 to your computer and use it in GitHub Desktop.
dynamic new js object
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
var Seasons = function(){ | |
this.name = "keisuke hata"; | |
} | |
Seasons.prototype.sayHello = function() { | |
print("こんにちは!!"); | |
} | |
var _global = this; | |
var seasons = new _global["Seasons"](); | |
print( seasons.name ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment