Sunday, March 18, 2007

JavaScript Function implemented

JavaScript 1.1, NES 2.0


JavaScript 1.2: added arity, arguments.callee properties; added ability to nest functions.


JavaScript 1.3: added apply, call, and toSource methods; deprecated arguments.caller property.


JavaScript 1.4: deprecated arguments, arguments.callee, arguments.length, and arity properties (arguments remains a variable local to a function rather than a property of Function).

Property:Description

arguments
:An array corresponding to the arguments passed to a function.

arguments.callee:Specifies the function body of the currently executing function.

arguments.caller:Specifies the name of the function that invoked the currently executing function.

arguments.length:Specifies the number of arguments passed to the function.

arity
:Specifies the number of arguments expected by the function.

constructor:Specifies the function that creates an object's prototype.

length:Specifies the number of arguments expected by the function.

prototype:Allows the addition of properties to a Function object.

No comments :