I will pass to a fuction mutiple sets of argumentes like this:
Myfunction(var1,var2)(var3,var4)(var5);
But i only know how to get the first set of aguments like this:
function Myfunction() {
for (var i = 0; i < arguments.length; i++) {
alert(arguments[i]);
}
}
and it will return var1, var2
How can i get the other set of aguments (var3,var4)(var5) etc... ?
My reference: JavaScript variable number of arguments to function