Question : Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it.
Answered by : anthony-smith
function convertToInteger(str) { return parseInt(str, 2);
}
Source : | Last Update : Thu, 26 Dec 19
Answered by : anthony-smith
function convertToInteger(str) { return parseInt(str, 2);
}
Source : | Last Update : Thu, 26 Dec 19