title: Self-Invoking Functions in JavaScript
body: <p>What's the difference between these functions? Thanks for reply!</p>
  
  <p><strong>Function #1</strong></p>
  
  <pre><code>var myQuery = (function() {
  
    (...)
  
  })();
  </code></pre>
  
  <p><strong>Function #2</strong></p>
  
  <pre><code>var myQuery = (function() {
  
    (...)
  
  });
  </code></pre>