Use the parseInt Function with a Radix 1

I was can’t solve this problem.
as soon as possible solve this problem.

Your code so far


function convertToInteger(str) {
  
}

convertToInteger("10011");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function-with-a-radix

What have you tried? There is something you don’t understand? You have written only the starting code