In Chrome, when I type console.log in the one below:
console.log
console.log(\"A parameter\", \"A parameter\", \"A parameter\", \"A parameter\", \"A parameter\"
You can use the arguments array: jsfiddle.net/kUnJ2/
function foo() { for (var i = 0; i < arguments.length; i++) { document.body.innerHTML += arguments[i]; } } foo("There ", "are ", "as ", "much ", "arguments ", "as ", "you ", "want.");