Is it possible to pass multiple ( unknown ) parameters to a function without using an Array?
Take a look at this example code.
var test = function( /* Arguments */ ) { // Number 3
something( /* All Arguments Here */ );
};
var something = function( first, last, age ) { // Number 2
alert( first + last + age );
};
test('John', 'Smith', 50); // Number 1
So the question...
Is it possible to pass the parameters from
Number 1TONumber 2VIANumber 3without affecting the way it's used. ie. without anArray.
This could be something to do with OCD but using an array would be nasty looking.
Have I tried anything? Nope, there is nothing i can think of that i can try so.... what can I try? I have searched.....