Skip to content

Instantly share code, notes, and snippets.

@askehansen
Last active December 18, 2015 10:28
Show Gist options
  • Save askehansen/5768252 to your computer and use it in GitHub Desktop.
Save askehansen/5768252 to your computer and use it in GitHub Desktop.
Javascript namespace template
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