Last active
December 18, 2015 10:28
-
-
Save askehansen/5768252 to your computer and use it in GitHub Desktop.
Javascript namespace template
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 app = new function() | |
{ | |
// public // | |
// public function | |
this.publicFunction = function(message) | |
{ | |
console.log(message); | |
}; | |
// private // | |
// private function | |
var privateFunction = function(message) | |
{ | |
console.log(message); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment