Created
December 2, 2014 21:55
-
-
Save devdays/65531565ace7d414e94e to your computer and use it in GitHub Desktop.
Object JavaScript - namespace as a global variable
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 myApp = { | |
name: "Bruce"; | |
greeting: function() { | |
return "Hello " + myApp.name; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment