var foo = function() { return arguments.length }; foo() // 0 foo(1, 2, 3) // 3