pre-defined parameters
<p>I want to be able to do this in JavaScript:</p>

<pre><code>function myFunction(one, two = 1) {
     // code
}

myFunction("foo", "2");

myFunction("bar");
</code></pre>

<p>I tried this and it doesn't work. I don't know how to call this type of parameters, could somebody point me in the right direction? </p>

<p>Thanks.</p>
