title: Is there any difference between var name = function() {} & function name() {} in Javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname">JavaScript: var functionName = function() {} vs function functionName() {}</a>  </p>
  </blockquote>
  
  
  
  <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>