Basic JavaScript: Use the parseInt Function with a Radix | freeCodeCamp.org
Tue Oct 04 2022 16:27:00 GMT+0000 (Coordinated Universal Time)
Saved by @chymax030 #javascript
function convertToInteger(str) { return parseInt(str, 2); } convertToInteger("10011");
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function-with-a-radix
Comments