What is difference between creation of function?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/114525/the-difference-between-the-two-functions-function-x-vs-var-x-function">The difference between the two functions? (“function x” vs “var x = function”)</a><br>
  <a href="http://stackoverflow.com/questions/1013385/what-is-the-difference-between-a-function-expression-vs-declaration-in-javascrip">What is the difference between a function expression vs declaration in Javascript?</a>  </p>
</blockquote>



<p>So far I have come up with two way to create functions. The first one is:</p>

<pre><code>function sum(x, y) {
    return x + y;
};
</code></pre>

<p>The another one is like this:</p>

<pre><code>var sum = function (x, y) {
    return x + y;
};
</code></pre>

<p>I use the second method and not the first one. So I want to know "Am I missing something?"</p>
