The Boolean Object's Properties and Methods

xiaoxiao2021-03-05  19

The Boolean Object's Properties and Methods Are Described Below:

NN: Netscape, IE: Internet Explorer

Properties

Syntax: Object.property_name

PropertyDescriptionnnie ConstructorContains the function That created An Object's prototype44prototypeAllows addition of property and methods to the object34

Methods

Syntax: Object.method_name ()

MethodDescriptionNNIEtoString () Converts a Boolean value to a string. This method is called by JavaScript automatically whenever a Boolean object is used in a situation requiring a string44valueOf () Returns a primitive value ( "true" or "false") for the Boolean object44