constructor function
function test(){ var argValues = ""; //arguments look like this: // {0: a, 1: b, 2: c} for (var key in arguments){ argValues += arguments[key] + " "; } return argValues; } console.log(test("a", "b", "c"));