JavaScript String toString() method
returns a string representing an object

toString() method changes a value into a string.

toString() does not accept any parameter.

toString() method works for most data types and objects.

toString() method is used to turn numbers, booleans, arrays and objects into strings.

toString() method converts an object to a primitive value.

toString() method does not change the original string.

toString() method returns '[object Object]' if it cannot return a string.

[object Object] is the default string representation of an object

The radix paramater determines the base to use when representing the number.

The radix can be set anywhere between 2 and 36, otherwise RangeError is thrown.

The default value for the radix is decimal 10.

syntax 1 description
return a string representing the specified object
select an option from above
myValue.toString()
syntax 2 description
return a string representing myNumber in specified radix (base)
enter number and its radix below
myNumber.toString(radix)