How can I declare optional function parameters in Javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/148901/is-there-a-better-way-to-do-optional-function-parameters-in-javascript">Is there a better way to do optional function parameters in Javascript?</a>  </p>
</blockquote>



<p>Can I declare default parameter like </p>

<pre><code>function myFunc( a, b=0) 
{ 
  // b is my optional parameter 
} 
</code></pre>

<p>in javascript.</p>
