toString
255n.toString(16) // β 'ff' (hexadecimal)
Use toString(16) to get the hexadecimal representation of a BigInt.
(255n).toString(16) converts the BigInt to a hex string 'ff'.
(255n).toString(16)
'ff'
Challenge: Verify hex conversion.