The following code creates dogToString, the function that will be used in place of 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 . Example See watch . Every object has a valueOf method that is automatically called when it is to be represented as a primitive value. If an object has no primitive value, valueOf returns the object itself.