What's the difference in those declarations (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>In Javascript I can write:</p>

<pre><code>function TheFunc(arg) {
   ...
}
</code></pre>

<p>or </p>

<pre><code>TheFunc = function(arg) {
   ...
}
</code></pre>

<p>or</p>

<pre><code>TheFunc : function(arg) {
   ...
}
</code></pre>

<p>What's the real difference and when should I use which?</p>
