Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created April 20, 2010 16:09
Show Gist options
  • Save kwhinnery/372692 to your computer and use it in GitHub Desktop.
Save kwhinnery/372692 to your computer and use it in GitHub Desktop.
var myApplication = function(){
var name = 'Chris';
var age = '34';
var status = 'single';
function createMember(){
// [...]
}
function getMemberDetails(){
// [...]
}
return{
create:createMember,
get:getMemberDetails
}
}();
//myApplication.get() and myApplication.create() now work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment