Returns a string representation of a Boolean object.
Syntaxboolean.toString()
If the Boolean value is true , returns "true". Otherwise, returns "false".
ExamplesThe following example illustrates the use of the toString method.
var s = new Boolean(0);
document.write(s.toString());
Create a Boolean variable and convert it to a string
var flag = new Boolean(true);
var myVar = flag.toString();
See also Specification
Boolean Objects ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4