Im sure this is another time I'm over complicating things, or just making myself loopy.

With just vanilla javascript, i want to make this code output an array of every rgb color code, (im using 25 instead of 255 just for sanity)

```
var a = [];
    for( var i = 0; i < 25; i++ ) {
for( var j = 0; j < 4; j++ ) {
     a.push(i)
      console.log('rgb('+a+')');
    }
}

```

the above outputs this 25 times:
rgb(0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6.... so on ...25,25,25)

Then i tried this, or something like this, i lost what i had planned to show as example i think lol.

```
var a = [];
for( var j = 0; j < 4; j++ ) {
    for( var i = 0; i < 25; i++ ) {
     a.push(i)
      console.log('rgb('+a+')');
    }
    for( var k = 0; k < 4; k++ ) {
      console.log('rgb('+a+')');
    }
}

```

either way.
everything i've tried doesn't do what i want. i've tried to create a function too, still kinda lost in it.

ok, so this is another version i created, almost does it again, but not quite right:

```
var n = [];
for( var i = 0; i < 25; i++ ) {
    n.push(i);
}

var a = [];
n.forEach( function() { 
    for(j = 0; j<3;j++) { 
        var b = j
    }
    return a.push(n); 
});
console.log(a);

```

outputs 25 arrays with arrays 0-25;

i know it's something to do with arrays of arrays. thats the where i fail always, foreach loops and arrays have always been my downfall.