From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Boolean Object
The valueOf() method returns the primitive value of a Boolean object.
| booleanObject.valueOf() |
ExampleIn this example we will create a Boolean object and use valueOf() the get the primitive value of it:
The output of the code above will be:
Try it yourself » |
JavaScript Boolean Object
From http://www.w3schools.com (Copyright Refsnes Data)