オブジェクト Object Type
Format
arguments.length
arguments[参照番号] arguments [reference number]
Commentary
引数の内容を示します。 Shows the contents of the argument. 配列になっているためlengthで引数の数を取得することができます。 Because the sequence length can be obtained in a number of arguments. 渡された内容はarguments[0]のようにして参照することができます。 Content is passed arguments [0] you can see it as. この場合は0番目、つまり一番最初に渡された引数の内容を示します。 The second is 0, indicating the contents of the first argument passed to it.
サンプルコード Sample code
outputs[0] = test(123,456); outputs [0] = test (123,456);
function test(){ function test () (
var n = arguments.length; var n = arguments.length;
return n.toString(); return n.toString ();
} )