JavaScript Objects The Number Object- toString() - Javascript Objects

What is JavaScript Number - toString()?

This method returns a string which represents the specified object. The toString() method parses its first argument, and tries to return a string that represents the specified radix (base).

Syntax:

Its syntax is as follows −

Parameter Details:

radix − An integer between 2 and 36 specifying the base to use for representing numeric values.

Return Value:

Returns a string which represents the specified Number object.

Example:

Try the following example.

Output:

JavaScript Objects The Number Objects toString() Output


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics