Skip to content

Instantly share code, notes, and snippets.

@cmcculloh
Created May 26, 2011 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcculloh/993261 to your computer and use it in GitHub Desktop.
Save cmcculloh/993261 to your computer and use it in GitHub Desktop.
Array example, fully qualified object name, less readable
window.MyNamespace = {
something:new Array(
new Array("t","h","i","s"),
"that",
"the other"
),
another:function(){
return MyNamespace.something[0].join('');
}
};
alert(MyNamespace.another());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment