What's the difference between these two types of calling JavaScript anonymous functions?
<p>What is the difference between these two types of running a JavaScript function?</p>

<pre><code>(function() {
    //Code #1
})();
</code></pre>

<p>and</p>

<pre><code>(function() {
    //Code #2
}());
</code></pre>

<p>I've seen both of these and i tend to use the #1.</p>
