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:
function myFunction(a,b,c,d) {
//...
}
myFunction(paramA, paramB, '', paramD);
do you pass in undefined for param c and then do a check inside the function or something like that?