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