title: Javascript Function Definition Syntax
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname">JavaScript: var functionName = function() {} vs function functionName() {}</a><br>
    <a href="https://stackoverflow.com/questions/1925976/declaring-functions-in-javascript">Declaring functions in JavaScript</a>  </p>
  </blockquote>
  
  
  
  <p>I've seen 2 different syntaxes for defining functions in javascript:</p>
  
  <pre><code>function f() {
     ...
  }
  </code></pre>
  
  <p>As well as</p>
  
  <pre><code>var f = function() {
      ...
  };
  </code></pre>
  
  <p>What's the difference between these?  Is one of them deprecated?</p>