Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.