js convert to base 3 code example Example 1: javascript base 10 to base 2 parseInt(string, radix) Example 2: decimal to base 32 javascript NumberObject.toString(radix)