Created
August 10, 2012 02:30
-
-
Save emphaticsunshine/3310457 to your computer and use it in GitHub Desktop.
Global vs namespacing
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
/*This is a global variable*/ | |
var name = "Mohit Seth"; | |
var role = "UI Developer"; | |
/*It is how namespacing can be done*/ | |
var NS = { | |
name: "Mohit Seth", | |
role: "UI Developer" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment