title: Difference between 'var foo = function ...' and 'function foo() ...'
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1333830/usual-functions-vs-function-variables-in-javascript">&ldquo;Usual&rdquo; functions vs function variables in JavaScript</a><br>
    <a href="https://stackoverflow.com/questions/3208236/what-do-you-call-this-javascript-syntax-so-i-can-research-it">What do you call this JavaScript syntax, so I can research it?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a fundamental difference between</p>
  
  <pre><code>function foo()
  {
      things();
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var foo = function()
  {
      things();
  }
  </code></pre>
  
  <p>Or is <code>function ...</code> just syntactical sugar?</p>
  
  <p>Thanks in advance.</p>