What does "!function () {}" mean/do in javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function">What does the exclamation mark do before the function?</a><br>
  <a href="http://stackoverflow.com/questions/5422585/preceding-function-in-javascript">! preceding function in javascript?</a><br>
  <a href="http://stackoverflow.com/questions/5827290/javascript-function-leading-bang-syntax">javascript function leading bang ! syntax</a>  </p>
</blockquote>



<p>I've been seeing this pattern a little bit recently in javascript:</p>

<pre><code>!function () {
    // do something
}()
</code></pre>

<p>what does the bang in front of the <code>function</code> keyword supposed to do?  I can't seem to find anything about it on the intertubez.</p>
