**Tell us what’s happening:**

I already passed the test and after reading the forum I understand that the string “11” interpreted as 2 ( 2 meaning binary) means 0011, which converted to decimal would be 3.

Would someone be able to please walk me through the math to convert 0011 to decimal so I can arrive to 3? Apologies if this is out of scope for this exercise.

**Your code so far**

```
function convertToInteger(str) {
return parseInt(str, 2)
}
convertToInteger("10011");
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 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