The following code creates dogToString, the function that will be used to override the default toString method. The following example prints the string equivalent of the current location. Object with no string value. The following example prints the string equivalents of the numbers 0 through 9 in decimal and binary. Removes a watchpoint set with the watch method.
Parameters prop The name of a property of the object.
The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see Getting Started with Netscape JavaScript Debugger . By default, this method is inherited by every object descended from Object . Example See watch . Parameters None Description JavaScript calls the valueOf method to convert an object to a primitive value.