title: jQuery: Where to put semicolons?
body: <p>I learn jQuery mainly by studying code from other people.</p>
  
  <p>I found this script <a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/</a>.</p>
  
  <p>I've changed a bit so I got this code:</p>
  
  <pre><code>$(document).ready(function() {
      $('nav li a').click(function() {
  
          var toLoad = $(this).attr('href')+' article';
              $('article').fadeOut('slow',loadContent);
  
          function loadContent() {
              $('article').load(toLoad,'',showNewContent())
          }
  
          function showNewContent() {
              $('article').fadeIn('slow');
          }
  
          return false;
      });
  });
  </code></pre>
  
  <p>Now after many problems, I noticed the whole thing not to work, when I put a semicolon after "showNewContent())". Why does that happen?</p>
  
  <p>My second Question is, why does he start the function "loadContent" only with "loadContent" but the function "showNewContent" with "showNewContent()" (with brackets)?</p>