This is the internal mechanism by which functions are implemented.
Objects supporting this method are called functions.
When they are called, they add themselves to the scope chain and any variables subsequently declared are added to that scope. Hence local objects belong to the function being executed.
Another name for the function being executed is the call object.
The Global object does not have a Call property and you therefore cannot use it as a function.
See also: | Function property, Internal Method, JSObject.call() |
Prev | Home | Next |
Calendar time | Up | Call a function |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |