编辑代码:
查看结果 »
试一试 - ©
w3ii.com
The toString() method can output numbers as base 16 (hex), base 8 (octal), or base 2 (binary).
Try it