Skip to content

Instantly share code, notes, and snippets.

@csainty
Created March 7, 2012 22:35
Show Gist options
  • Save csainty/1996781 to your computer and use it in GitHub Desktop.
Save csainty/1996781 to your computer and use it in GitHub Desktop.
// helpers.js
(function() {
function add(x,y) {
return x + y;
}
})();
// page.js
console.log(add(1,1)); // throws add is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment