Last active
November 18, 2015 22:33
-
-
Save mralexho/fa3ce4f98791e41b8885 to your computer and use it in GitHub Desktop.
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 myNamespace = (function () { | |
var myPrivateVar = 0; | |
var myPrivateMethod = function (someText) { | |
console.log(someText); }; | |
return { | |
myPublicVar: "foo", | |
myPublicFunction: function (bar) { | |
myPrivateVar++; | |
myPrivateMethod(bar); | |
} }; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment