TypeScript | toString() Function
The toString() method in TypeScript is used to returns a string representing the specified object radix (base).
number.toString( [radix] )
Parameter: This function accept asingle parameter as mentioned above and described below:
Return Value: Returns a string representing the specified Number object.
Below examples illustrates the toString() function in TypeScript
123 7b 173 1323
Number Method: toString() 12345 3000321