var lights = ("blue", "white", "violet");
function check() {
for(var i = 0; i <= lights.length; i++) {
if(i = "blue") {
} else if (i = "white") {
} else if (i = "violet") {
}
}
I need help, I want to be able to change a css property which is not listed here but it consists of background colour is blue and I want to change it to another colour while accessing javascript. If anyone knows, please can they tell me step by step what to do please, thank you