If we have a function as:
function add(first = second, second) { return first + second; }
Calling it as:
add(1,2); // returns 3
Above code work fine but if we call it as:
add(undefined, 2); //throws error
I not sure how internally parameters are parsed in ES6, which result in error for the last one.