Created
December 2, 2014 21:53
-
-
Save devdays/642f2f879fe09d769d63 to your computer and use it in GitHub Desktop.
Object JavaScript Simple Namespace
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 = {}; | |
myApp.name = "Spock"; | |
myApp.greeting = function() { | |
return "Hello " + myApp.name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment