Convert a Boolean value to a string:
The result of myvar will be:
The toString() method converts a Boolean value to a string, and returns the result.
The toString() method is supported in all major browsers.
|String||Either "true" or "false"|
Your message has been sent to W3Schools.