Weird Javascript code around jQuery plugins
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2421911/what-is-the-purpose-of-wrapping-whole-javascript-files-in-anonymous-functions-li">What is the purpose of wrapping whole Javascript files in anonymous functions like “(function(){ … })()”?</a>  </p>
</blockquote>



<p>I have seen this kind of code specially when dealing with jQuery plugins. Can someone please explain me what this does?</p>

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