Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it.
By Claire Osinski at Dec 18 2019