title: What does (function () { })();mean?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/592396/what-is-the-purpose-of-a-self-executing-function-in-javascript">What is the purpose of a self executing function in javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>What meens in JS write a code like this:</p>
  
  <pre><code>(function (window) { })(window);
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>(function () { })();
  </code></pre>