A value property returns a generally constant value. Examples are the NaN and Infinity values returned by core objects.
Do not create your own object properties with the same name as internal or core value properties. If you do, unpredictable behavior may result. Internal values should be protected against accidental damage in this way and they would be, if the interpreter designers were infallible. Unfortunately, to date, they have proven to everyone's dissatisfaction that infallibility is a lost art.
See also: | Global object, Infinity, Internal Property, NaN |
Prev | Home | Next |
Value preserving | Up | valueOf() |
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. |