Edrol97
Bronze Coder
Hi all,
I'm wondering if I'm right here, think I'm on the right track but don't know. I've got a word based game that I've made on politics. The current version is currently live and can be seen here. I want to conditionally change the colors of the boxes based on the correct letters being inputted.
Thanks,
Eliot
I'm wondering if I'm right here, think I'm on the right track but don't know. I've got a word based game that I've made on politics. The current version is currently live and can be seen here. I want to conditionally change the colors of the boxes based on the correct letters being inputted.
JavaScript:
if (correctLetters.length === word.length) {style.color=green}
else
(style.color=#b50938)
Thanks,
Eliot