By assigning an object to a variable, you are not copying that object but instead making a reference to it. A reference is sometimes called an alias. The same technique is used in Java, and in non-object oriented languages you accomplish something similar with pointers.
See also: | Object |
Prev | Home | Next |
alert() | Up | Alpha() |
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. |