Created
July 23, 2016 02:27
-
-
Save jorgepinon/ed1d4ae2a6bcc4c8199343c60e21112a 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 myModule = (function () { | |
var privateMethod = function () { | |
console.log('A private method'); | |
}, | |
someMethod = function () { | |
console.log('A public method'); | |
}, | |
anotherMethod = function () { | |
console.log('Another public method'); | |
}; | |
return { | |
someMethod: someMethod, | |
anotherMethod: anotherMethod | |
}; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment