Booleans, numbers, and strings all have a toString() method to convert their value to a string. | |
The Boolean toString() method simply outputs the string "true" or "false". | |
| |
The Number toString() method has two modes: default and radix mode. | |
In default mode, the toString() method outputs the numeric value in an appropriate string. | |
| |
In default mode, the Number's toString() returns the decimal representation of the number. |