Basic JavaScript: ()();
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4806150/javascript-function-vs-function">javascript function vs. ( function() { &hellip; } ());</a>  </p>
</blockquote>



<p>Sorry if this is too basic, but what is this construct do?</p>

<pre><code>(function MyFunction() {
  /* Some codes ... */    
})();
</code></pre>

<p>Maybe there is a special term for that? It can be useful for Googling, instead of just putting that snippet in the search field.</p>
