title: What does $(function() {} ); do?
body: <p>Sometimes I make a function and call the function later.</p>
  
  <p>Example:</p>
  
  <pre><code>function example { alert('example'); }
  example(); // &lt;-- Then call it later
  </code></pre>
  
  <p>Somehow, some functions cannot be called. I have to call those functions inside:</p>
  
  <pre><code>$(function() { });
  </code></pre>
  
  <p>What do <code>$(function() {});</code> and <code>(function() { });</code> mean, and what's the difference/purpose of these?</p>