Number Data Type JavaScript Tutorial

Syntax

boolean.toString()
The toString() method returns the string representation ("true" or "false") of the primitive Boolean value.
If true, the string "true" is returned.
If false, the string "false" is returned.