So I'm supposed to display every possible combination of the following array:
Now I was told that I'd want to use to a loop within a loop to do that, but I really can't figure this out.. looked around, google'd, etc and I'm hopeless lol. Can anyone help me to do this?
Code:
var webcolors = new Array();
webcolors[0] = "00";
webcolors[1] = "33";
webcolors[2] = "66";
webcolors[3] = "99";
webcolors[4] = "CC";
webcolors[5] = "FF";
Now I was told that I'd want to use to a loop within a loop to do that, but I really can't figure this out.. looked around, google'd, etc and I'm hopeless lol. Can anyone help me to do this?










