toString()の引数に数字を入れると進数変換ができ文字列に変換します。 サンプルでは、10進数の数値を16進数、8進数、2進数に変換をしています。
The toString() method of {{jsxref("BigInt")}} values returns a string representing the specified {{jsxref("BigInt")}} value. The trailing "n" is not part of the string. : An integer in the range 2 ...