Is there any difference between var name = function() {} & function name() {} in Javascript?
<p>Suppose we are inside a function and not in the global namespace.</p>

<pre><code>function someGlobalFunction() {
  var utilFunction1 = function() {
  }

  function utilFunction2 () {
  }

  utilFunction1();
  utilFunction2();

}
</code></pre>

<p>Are these synonymous? And do these functions completely cease to exist when <code>someGlobalFunction</code> returns? Should I prefer one or the other for readability or some other reason?</p>
