title: Passing in function parameters that don't exist or are undefined?
body: <p>I was wondering what the best practice would if I had function that accepted 4 params a,b,c,d but I had a situation where I didnt have a value to pass in for param c but needed to pass in a value for param d so:</p>
  
  <pre><code>function myFunction(a,b,c,d) {
   //...
  }
  
  myFunction(paramA, paramB, '', paramD);
  </code></pre>
  
  <p>do you pass in undefined for param c and then do a check inside the function or something like that?</p>