Skip to content

Instantly share code, notes, and snippets.

@buzzedword
Created October 28, 2010 16:26
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 buzzedword/651726 to your computer and use it in GitHub Desktop.
Save buzzedword/651726 to your computer and use it in GitHub Desktop.
var fizzbang = function(){
return {
foo : function(){
alert('This is a method');
},
bar : function(){
alert('This is also a method');
}
};
}();
fizzbang.foo(); // alert('This is a method');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment