how to convert a binary number into integer using parseInt() in javascript code example Example: binary to int javascript let binary = 0001 parseInt(binary, 2) // returns 1