title: self executing function jquery vs javascript difference
body: <p>What are the difference among -</p>
  
  <p><strong>First :-</strong></p>
  
  <pre><code>(function () {
  
      var Book = 'hello';
  
  }());
  </code></pre>
  
  <p><strong>Second:-</strong></p>
  
  <pre><code>(function () {
  
      var Book = 'hello';
  
  })();
  </code></pre>
  
  <p>First and second are similar some how in work..</p>
  
  <p><strong>Third :-</strong></p>
  
  <pre><code>(function ($) {
  
      var Book = 'hello';
  
  })(jQuery);
  </code></pre>
  
  <p>What pattern I need to use and where in my coding.. Third module pattern I have seen while I was reading a article related to backboneJS.</p>
  
  <p><strong>What I understood from Third one "self executing function with the argument “jQuery”" ....</strong></p>
  
  <p>Can any please give me some idea about Immediately Invoked Function Expressions <strong>(IIFE)</strong>.</p>
  
  <p>Thanks !!</p>