Use Parseint In The Converttointeger Function So It Converts A

[Solved] Use Parseint In The Converttointeger Function So It Converts A | Basic - Code Explorer | yomemimo.com
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

Answers related to use parseint in the converttointeger function so it converts a binary number to an integer and returns it

Code Explorer Popular Question For Basic