JS Built-ins
BigInttoStringbeginner

BigInt.prototype.toString() β€” zero

πŸ“– Usage Example
1000n.toString(10)  // β†’ '1000'

Passing 10 as the radix to toString() gives the standard decimal representation.

BigInt toString() Zero

(0n).toString() returns '0'.

Challenge: Verify zero conversion.

πŸ’‘ Hints (1)
  • β€’ Zero in any base is always "0".