What is the purpose of a self executing function in javascript?
<p>In javascript, when would you want to use this:</p>

<pre><code>(function(){
    //Bunch of code...
})();
</code></pre>

<p>over this:</p>

<pre><code>//Bunch of code...
</code></pre>
