Bear Bibeault wrote:The "+' notation forces the following function to be evaluated as an expression, and the trailing (jQuery) causes the function to be executed with jQuery as its argument. Note that within the function, this is assigned to $ via the parameter list of the function.
This is called an "immediate function" because it is declared and executed at the same time ("immediately").
The notation more commonly used for this is:but some people prefer the "+" notation.
Ah I see and thanks for highlighting the term "immediate function", which I have been able to look up successfully on Google and found the following excellent article.
http://blog.kevinchisholm.com/javascript/javascript-immediate-functions-basics/