I have a function with many parameters and many default value on them.
function foo(p1 ,p2, p3, p4, p5, p6){
var p1 = p1 || 'default1';
var p2 = p2 || 'default2';
var p3 = p3 || 'default3';
var p4 = p4 || 'default4';
var p5 = p5 || 'default5';
var p6 = p6 || 'default6';
}
How can I successfully only define like p1 and p6 only and not the rest?
I know in Scala you can do foo(p1='something1',p6='something6')