Skip to content

Instantly share code, notes, and snippets.

@argyleink
Last active December 16, 2015 10:58
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 argyleink/5423632 to your computer and use it in GitHub Desktop.
Save argyleink/5423632 to your computer and use it in GitHub Desktop.
Favorite JavaScript Module Pattern
app.module = (function(){
'use strict';
function publicFunction() {
}
function privateFunction() {
}
return {
pubFunctionName: publicFunction
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment