Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created April 2, 2014 14:03
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 hhariri/9934820 to your computer and use it in GitHub Desktop.
Save hhariri/9934820 to your computer and use it in GitHub Desktop.
var REVEALING = function () {
var privateProp = "Log";
var PIVALUE = 3.14;
log = function (message) {
console.log(privateProp + ": " + message);
};
return {
PI: PIVALUE,
log: log
};
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment