Created
August 15, 2017 18:02
-
-
Save hachesilva/93bf7967e36e6d53c902114a0252e41b 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
// Expose module as global variable | |
var Module = function(){ | |
// Inner logic | |
function sayHello(){ | |
console.log('Hello'); | |
} | |
// Expose API | |
return { | |
sayHello: sayHello | |
} | |
} | |
var module = new Module(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment