title: Why are parenthesis used to wrap a javascript function call?
body: <p>What is the difference between these two javascript function calls?</p>
  
  <pre><code>(function(){alert("foo")})()
  </code></pre>
  
  <p>versus this:</p>
  
  <pre><code>(function(){alert("foo")}()) 
  </code></pre>