title: JS: functions arguments default values
body: <p>In some languages you can set default values for function's arguments:</p>
  
  <pre><code>function Foo(arg1 = 50, arg2 = 'default') {
      //...
  }
  </code></pre>
  
  <p>How do you do it in JavaScript?</p>