Created
December 10, 2009 16:12
-
-
Save wavded/253421 to your computer and use it in GitHub Desktop.
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 a = {}; | |
//to note: nothing is passed in and no private variables/functions/etc. on purpose | |
var b = (function(){ | |
return {}; | |
})(); | |
/* | |
Is there any difference between a and b in regards to scope/execution? Any advantage one has over the other? (besides like arguments.callee/recursive stuff); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment