When the toString() method of an Object.prototype is invoked, the class name of the object is returned as a string.
The result of calling this method will be the string:
[object "Object"]
See also: | Cast operator, Object.prototype, toString() |
Prev | Home | Next |
Object.toSource() | Up | Object.unwatch() |
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. |