49
There is the inverse to everyones answer in that you can call a function that doesnt appear to have parameters in the signature with parameters.
You can then access them using the built in arguments global. This is an array that you can get the details out of it.
e.g.
function calcAverage()
{
var sum = 0
for(var i=0; i<arguments.length; i++)
sum = sum + arguments[i]
var average = sum/arguments.length
return average
}
document.write("Average = " + calcAverage(400, 600, 83))
In addition to the comments above, the arguments array has zero length. One can examine it rather than the parameters named in the function signature.
You get an exception as soon as you try to use one of the parameters.