Various Ways Of Declaring Functions In JavaScript
<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 was doing some reading up in JavaScript and came to know that there are three ways of declaring a JavaScript function.</p>

<pre><code>var someFunction = function someFunction () {
};

var someFunction = function () {
};

function someFunction() {
}
</code></pre>

<p>Could anybody explain to me the difference between those various ways of declaring functions, and if any is preferred over the other?</p>
