An object argumentis a local variable array like objectavailable in all functions.
So, arguments.join = [].join;creates a new array and on which you can use all the methods available in the js array.
Therefore var argStr = arguments.join(':');will return1:2:3
var argStr = arguments.join();
var argStr = arguments.join(' + ');
var argStr = arguments.join('');
source
share