The Boolean Object As its name makes clear, the Boolean object handles Boolean values. There's not really a great deal to this object, but we should cover it for the sake of completeness. You can see the properties of the Boolean object in Table 19.7 and its methods in Table 19.8. Table 19.7. The Properties of the Boolean Object | Property | NS2 | NS3 | NS4 | NS6 | IE3a | IE3b | IE4 | IE5 | IE5.5 | IE6 | | constructor | | x | x | x | | x | x | x | x | x | | | Read/write | | | This property specifies the function that creates an object. | | prototype | | x | x | x | | x | x | x | x | x | | | Read/write | | | This property returns a reference to the object's prototype. You use the prototype property to provide base functionality to a class of objects. See "Using the prototype Property" in this chapter. | Table 19.8. The Methods of the Boolean Object | Method | NS2 | NS3 | NS4 | NS6 | IE3a | IE3b | IE4 | IE5 | IE5.5 | IE6 | | toString | | x | x | x | | x | x | x | x | x | | | Returns: String | | | This method returns the string "true" or "false" to match the | | | Boolean value of the object. | | | Syntax: boolean .toString() . | | valueOf | | x | x | x | | x | x | x | x | x | | | Returns: Number | | | This method returns a Boolean value of true or false to match the | | | Boolean value of the object. | | | Syntax: boolean .valueOf() . | |