title: Meaning of (function(){ in Javascript
body: <p>I'm looking to understand the difference between this code:</p>
  
  <pre><code>(function() {
  </code></pre>
  
  <p>and this code:</p>
  
  <pre><code>$(function() {
  </code></pre>
  
  <p>Does the first example run the code after document ready, as the second does? Or does it simply scope the function and nothing more?</p>