scripting subtlties
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/6223050/when-to-use-anonymous-javascript-functions">When to use anonymous JavaScript functions?</a><br>
  <a href="http://stackoverflow.com/questions/2932186/is-there-any-difference-between-var-name-function-function-name-in">Is there any difference between var name = function() {} &amp; function name() {} in Javascript?</a>  </p>
</blockquote>



<p>in javascript (and other scripting languages) what is the 'real' difference between these two syntax:</p>

<p>a)  <code>function myFun(x) { yadda yadda }</code></p>

<p>b)  <code>myFun(x) = function { yadda yadda }</code></p>

<p>to a casual observer - no 'real' difference - you still call either as myFun()...and they still return the same thing, so if reference and return are identical - is it a preference or is there some difference in the code parsing engine that treats these two differently - and if so - when would you use one over the other???</p>
