I\'m trying to wrap my head around closures (there\'s a joke in there somewhere) and I ran across this:
(function () { /* do cool stuff */ })();
i just came across this post recently. This type of function definition & call is called self-invoking functions.
(function(){ //code })();
The code inside the function will be executed immediately upon its definition.