I missed this before. Why are you using bitwise operators here instead of a simple decrementing loop?

```js
for (; num > 0; num--) {
    str += str;
}
```