title: ! preceding function in javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3755606/what-does-the-exclamation-mark-do-before-the-function">What does the exclamation mark do before the function?</a>  </p>
  </blockquote>
  
  
  
  <p>I saw a function formatted like this today for the first time:</p>
  
  <pre><code>!function(){}();
  </code></pre>
  
  <p>What is the preceding exclamation mark for? I assume it functions the same as:</p>
  
  <pre><code>(function(){})();
  </code></pre>
  
  <p>But... what's going on here?</p>