The callee attribute is a member of the arguments object. It indicates a reference to the function object itself, which facilitates recursion of anonymous functions or ensures function encapsulation. Callee: return the Function object being executed, that is, the body of the specified Function object.
Note: The initial value of the callee attribute is the Function object being executed.
The callee attribute is a member of the arguments object. It indicates a reference to the function object itself. This facilitates recursion of anonymous functions or ensures function encapsulation, for example, the following example recursively calculates the sum of natural numbers from 1 to n. This attribute is only available when the related function is being executed. It should also be noted that callee has the length attribute, which is sometimes used for verification. Arguments. length is the length of the real parameter, and arguments. callee. length is the length of the form parameter, which can be used to determine whether the length of the form parameter is consistent with the actual length.
Instance 1:
Callee can print itself.