Are these two code equivalent?
<blockquote>
  <p><strong>Possible Duplicate:</strong><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>I am a web developer with prime experience in HTML, ASP.NET. I know very little javascript, enough to do simple tasks in web programming. Lately, while reading Jquery and other complex javascript files, I have been observing lot of javascript code as below:</p>

<pre><code>var increment = function(x){
    return x + 1;
}
</code></pre>

<p>I want to know if this is conceptually same as below, which I have been more used to :</p>

<pre><code>function increment(x){
    return x + 1;
}
</code></pre>

<p>And, if its same, why am I seeing lot of use of first notation rather than second ?</p>
