From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Boolean Object
The toString() method converts a Boolean value to a string and returns the result.
| booleanObject.toString() |
Note: This method is called by JavaScript automatically whenever a Boolean object is used in a situation requiring a string.
ExampleIn this example we will create a Boolean and then convert it to a string:
The output of the code above will be:
Try it yourself » |
JavaScript Boolean Object
From http://www.w3schools.com (Copyright Refsnes Data)