What happens to elementX if the variable x is 4?elementX.sty…
What happens to elementX if the variable x is 4?elementX.style.color = “blue”; if (x == 1) { elementX.style.color = “yellow”; } else if (x == 2) { elementX.style.color = “green”; } else if (x == 3) { elementX.style.color = “red”; }