title: What's the difference between these two IIFE invocation syntaxes?
body: <pre><code>(function f() {
      // do something
  }());
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>(function g() {
      // do something
  })();
  </code></pre>
  
  <p><em>Note the position of the ending parentheses.</em>  </p>
  
  <ol>
  <li>Do these execute in the same manner?  </li>
  <li>Do they restrict the scope of variables differently?</li>
  </ol>