Question: how to cycle below values with javascript?

```
0, -120, -240, -360, -480, -600, -720

```

to get the output like

```
0 -120 -240 -360 -480 -600 -720 0 -120 -240 -360 -480 -600 -720 0 -120 -240 -360 -480 -600 -720 .....

```

Regards

Answer: 
Or:

```
var d = -120, n = 7, s = 0, c = n * 2, limit = d * n;
var result = []
while (c--) {
  result.push(s % limit);  
  s += d;
}
alert(result); // 0,-120,-240,-360,-480,-600,-720,0,-120,-240,-360,-480,-600,-720

```
```
var arr = [0, -120, -240, -360, -480, -600, -720];
var count = 3;
var output = [];
for(var i = 0; i < count; i++)
{
   output = output.concat(arr);
}
alert(output);

```

[working code on fiddle](http://jsfiddle.net/gbsandeep/A4DHn/)