Static variables are also known as class variables.
If we want to create some class variables, we need to add properties to the constructor function object.
If we have made our own constructor function, we can add our own class variables to it.
We can also add class variables to the built-in objects in some implementations.
These are called static variables because they are not associated with a local instance.
See also: | Function object properties |
Prev | Home | Next |
Static method | Up | status |
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. |