function foo(arg){ document.write(foo.length); //affiche 1 document.write(arguments.length); //affiche 2 } foo('param1', 'param2');