JS anonymous function invocation syntax


<p>What is the difference between these two:</p>

<pre><code>(function () {
    alert('something');
})();​  # invocation parens after the wrapping parens
</code></pre>

<p>and</p>

<pre><code>(function () {
    alert('something');
}());  # invocation parens inside the wrapping parens
</code></pre>

<p>—both give me the same result: alerting "something".</p>
