I have function, which depending on how it's being called can have different number of arguments passed to it. I know how to set it up, when I know the # of args being passed, but not sure how to handle multiples.
How to pass multiple values?
Code:
function tryThis(val1, val2) {
var myVal1 = val1;
var myVal2 = val2;
alert (val1 + val2);
}
How to pass multiple values?
Code:
fucntion tryMul(?) {
}