use the toString() method to output numbers as base 16 (hex), base 8 (octal), or base 2 (binary).