title: Use default parameter in JavaScript like in C#
body: <p>In C# you can do something like that: </p>
  
  <pre><code>class Program 
  {
      static void Main(string[] args)
      {
          Sum(2, 2, d: 10);
      }
  
      static int Sum(int a, int b, int c = 0, int d = 0)
      {
          return a + b + c + d;
      }
  }
  </code></pre>
  
  <p>Is there a way to do something similar with Javascript? </p>
  
  <pre><code>const foo = (a, b, c = 0, d = 0) =&gt; a + b + c + d;
  
  </code></pre>
  
  <p>And then call this function:</p>
  
  <pre><code>foo(2, 2, d = 10);
  </code></pre>
  
  <p>Or the only way is call this function this way?</p>
  
  <pre><code>foo(2, 2, undefined, 10);
  </code></pre>