On the JavaScript arguments objects

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.callerPointing to the current function call.

Guess you like

Origin www.cnblogs.com/aduner/p/12229695.html
Recommended