Skip to content Skip to sidebar Skip to footer

How Exactly Does !function(){}() Work?

I've seen: !function(){ //code }(); Used in several places to immediately execute an anonymous function. Normally, it's used in lieu of: (function(){ //code }()) Anyone know how

Solution 1:

The ! is an ordinary logical negation.
The () executes the function.


Post a Comment for "How Exactly Does !function(){}() Work?"