-1

What's the name of this pattern please?

I'm planning to research it after finding out its name... however, if you like you are welcome to explain what it does.

(function($) {


      //code


            })(jQuery);
thanks_in_advance
  • 2,486
  • 5
  • 24
  • 43

2 Answers2

1

Immediately Invoked Function Expression is what you are looking for.

Tomanow
  • 7,045
  • 3
  • 23
  • 50
0

Are you referring to the self-executing anonymous function?

i.e. http://markdalgleish.com/2011/03/self-executing-anonymous-functions/

boxsome
  • 178
  • 5
  • 1
    Also known as [**Immediately-Invoked Functions Expressions**](http://stage.learn.jquery.com/javascript-101/functions/) – PeterKA Nov 11 '14 at 00:24