.toBase(base)
Description
toBase converts a number to a string representation in the specified base (radix). Common uses include converting to binary (base 2), octal (base 8), or hexadecimal (base 16).
Parameters
toBase needs one parameter:
base: The base to convert the number to (between 2 and 36)
Usage On Numbers
Last updated
Was this helpful?