Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the name of this? [duplicate]

Tags:

javascript

Possible Duplicate:
Explain JavaScript’s encapsulated anonymous function syntax

i don't understand completely what this does, so i wanted to look it up in google but I didn't find anything and realized that I don't know its name; so my question is: What is the name of this construction (?) :

( function ( ... ) {} )( jQuery, window, document );

Thanks in advance guys.

like image 286
tmuecksch Avatar asked Jan 02 '13 14:01

tmuecksch


1 Answers

It is a Self Executing Anonymous Function, or Immediately Invoked Function Expression (IIFE), as others also answered.

like image 183
Oded Avatar answered Sep 28 '22 11:09

Oded