@michaelficarra I'm sorry, there's something I missing here. Can you explain to me why this function wouldn't work:

```js
function stringRepeat2(str, num) {
    var result = "";

    for (; num > 0; num--) {
        result += str;
    }

    return result;
}
```