We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

callee Property

Returns the Function object being executed, that is, the body text of the specified Function object.



Optional. The name of the currently executing Function object.

The callee property is a member of the arguments object that becomes available only when the associated function is executing.

The initial value of the callee property is the Function object being executed. This allows anonymous functions to be recursive.


The arguments object is not available when a program is running in fast mode, the default for JScript. To compile a program that uses the arguments object from a command prompt, you must turn off the fast option by using /fast-. It is not safe to turn off the fast option in ASP.NET because of threading issues. For more information, see arguments Object.

The following example illustrates the use of the callee property.

function factorial(n) {
   if (n <= 0)
      return 1;
      return n * arguments.callee(n - 1)
// Output: 24