Created
May 28, 2010 16:07
-
-
Save ignu/417344 to your computer and use it in GitHub Desktop.
oof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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