convert boolean and number to string javascript code example Example: boolean as string javascript bool.toString()