javascript - (function(){})() vs. !function(){}() -


this question has answer here:

in jquery javascript code see

(function(window, undefined) { })(window); 

and in twitter

!function(window, undefined) { }(window); 

can tell difference between these 2 approaches is?

using ! operator before function causes treated expression, can call it:

!function() {}() 

http://jasonlau.biz/home/faq/what-is-the-exclamation-mark-used-for-in-code


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -