Hello, I need help. I am trying some code for a school project.

I have to print first n terms of this sequence: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 ...

So far, I did this:

```
function frSeq(n) {
result = [];
for(i=1;i<=n;i++){
for(j=1; j<=i;j++) {
result.push(j);
}
}
console.log(result);
}
```

I know, this one is wrong, that it prints full subsequences instead of terms, so can you just point me the right direction, please?

XOXO G.