Creating a function in JS
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname">Javascript: var functionName = function() {} vs function functionName() {}</a>  </p>
</blockquote>



<p>I am curious to which is best pratice when creating a function in js</p>

<pre><code>function x() {
    ...
}
</code></pre>

<p>OR</p>

<pre><code>var x = function() {
    ...
}
</code></pre>

<p>Is there a difference or are they the exact same thing. </p>
