Skip to content

Instantly share code, notes, and snippets.

@jvanderhoof
Created December 1, 2014 17:42
Show Gist options
  • Save jvanderhoof/bf3107f56f571ca75c6e to your computer and use it in GitHub Desktop.
Save jvanderhoof/bf3107f56f571ca75c6e to your computer and use it in GitHub Desktop.
JS Namespace Example
var ImeiChecker = {
test_one: 'testing 1',
test_two: 'testing 2'
};
// Then you can retrieve the values:
ImeiChecker.test_one; // => testing 1
// Update the values:
ImeiChecker.test_one = 'testing 123';
ImeiChecker.test_one; // => testing 123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment