Created
December 9, 2009 20:25
-
-
Save wavded/252777 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
/* in few words:no round brackets=function or object, round brackets:anything, arguments.callee included.diff is the left assignment */ | |
var a = function(){return 1}(); // 1 | |
var b = function(){return {}}(); //object | |
function(){return 1}(); //error | |
function(){return {}}(); //error | |
var c = (function(){return arguments.callee})(); //function | |
var d = (function(){return []})(); //array | |
(function(){return 1})(); // 1 | |
(function(){return {}})(); //object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment