Is function declaration without the "function myFunction() {}" syntax discouraged 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>There are two ways to declare a function in Javascript:</p>

<p>Syntax 1:</p>

<pre><code>function myFunction() {
    // something awesome
};
</code></pre>

<p>Syntax 2:</p>

<pre><code>var myFunction = function() {
    // somtehing even more awesomer
};
</code></pre>

<p>It seems to me that I come across Syntax 1 a lot more in legacy code than in well written code (but that's purely empiric).</p>

<p><strong>Q</strong>: Should prever a syntax over the other, and why ?</p>
