convert base 2 to base 10 js code example Example: javascript base 10 to base 2 parseInt(string, radix)