編輯代碼:
查看結果 »
試一試 - ©
w3ii.com
The toString() method can output numbers as base 16 (hex), base 8 (octal), or base 2 (binary).
Try it