Why do many javascript libraries begin with "(function () {"?
<p>Why do many javascript libraries look like this: </p>

<pre><code>(function () { 
    /* code goes here */ 
})();
</code></pre>

<p>It appears to define an unnamed function which is immediately called. Why go through this effort?</p>
