My goal is to change the background colors of my website by cycling through all possible combinations. However, I'm encountering issues with my code and can't figure out what's wrong.
var red = 0;
var green = 0;
var blue = 0;
do {
do {
do {
blue = blue + 1;
document.body.bgcolor = "red, green, blue";
} while (blue < 255);
green = green + 1;
document.body.bgcolor = "red, green, blue";
} while (green < 255);
red = red + 1;
document.body.bgcolor = "red, green, blue";
} while (red < 255);