arguments object
concept
arguments is an array object class. Representatives passed to a function parameter list.
usage
function a() {
console.log(arguments);
}
a("A", "b", 1);
Export
["A", "b", 1]
Attributes
arguments.callee
Points to the currently executing function.Recursive commonly used to prevent the modified error function, improved code security, stability.
arguments.length
Points to the current number of parameters passed to the function.arguments.caller
Pointing to the current function call.