title: Difference between closures with parentheses inside vs outside
body: <p>Can someone explain what the difference is between these closures? Is there a difference? I haven't previously seen the second example (parentheses inside).</p>
  
  <pre><code>(function(a, b) {
      //...
  })(x, y);
  
  // Parentheses inside
  (function(a, b) {
      //...
  }(x, y));
  </code></pre>
  
  <p>And here, is there a difference between these closures? Is there a scenario where there <em>would</em> be a difference?</p>
  
  <pre><code>FOO.Bar = (function() {
      //...
  })();
  
  FOO.Bar = (function() {
      //...
  }());
  </code></pre>