My code isn't working . I'm trying to figure out what the bug is . Can someone help ? ! It's a function that is supposed to return an array of the first n triangular numbers. 

For example, listTriangularNumbers(5) returns [1,3,6,10,15]. 

```
  function listTriangularNumbers(n) {
    var num;
    var array = [];
    for (i = 1; i <= n; ++i) {
        num = i;
        for (j = i; j >= 1; --j) {
            num = num + j;
        }
        array.push(num);
    }
    return array;
}

```