BigInt.prototype.toString

Returns a string representation of the BigInt.

Syntax

toString(radix?)

Return value

A string representing the value.

Parameters

Examples

123456789123456789n.toString()
123456789123456789
123456789123456789n.toString(2)
110110110100110110100101110101100110100000101111100010101
123456789123456789n.toString(16)
1b69b4bacd05f15
123456789123456789n.toString(36)
xrls1yk9rf9