Skip to content

Instantly share code, notes, and snippets.

@ignu
Created May 28, 2010 16:07
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 ignu/417344 to your computer and use it in GitHub Desktop.
Save ignu/417344 to your computer and use it in GitHub Desktop.
oof
var myObject = function() {
var firstname; // my closure var
var self = {};
self.setFirstName = function(fname) {
firstname = fname
};
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment