standalone parentheses in javascript
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/1643321/javascript-why-the-anonymous-function-wrapper">JavaScript: Why the anonymous function wrapper?</a><br>
  <a href="http://stackoverflow.com/questions/6340874/a-javascript-function">A Javascript function</a><br>
  <a href="http://stackoverflow.com/questions/1639180/how-does-the-function-construct-work-and-why-do-people-use-it">How does the (function() {})() construct work and why do people use it?</a>  </p>
</blockquote>



<p>I saw some code in javascript in following format :</p>

<pre><code>(
 function()
 {
   //stmt
 }
)();
</code></pre>

<p>Why exactly do we use these standalone parentheses? Thank you.</p>
