Can a JavaScript function take unlimited arguments? Something like this:
testArray(1, 2, 3, 4, 5...);
I am trying:
var arr
function toArray() { return arguments; } var myargs = toArray(1, 2, 3, 4, 5, 6);
The arguments keyword is available in every js function
arguments