How can I make the buttons turn red when it reaches the specified number? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How can I make the buttons turn red when it reaches the specified number?

I have this code that simply adds and subtracts. I recently figured out how to limit it. But how can I make the buttons turn red? Like When it reaches 5, the + button will turn red and when it reaches 1, the - button will turn red https://code.sololearn.com/WQtkfnr8ukt3/?ref=app

24th Jun 2018, 11:25 PM
Daniel Cooper
Daniel Cooper - avatar
3 Respostas
+ 4
https://code.sololearn.com/WRfeno89lFhL/?ref=app
25th Jun 2018, 1:40 AM
CalviÕ²
CalviÕ² - avatar
+ 1
Donna I was told to do that so that it stop counting. I want it to stop counting and turn red but only when it reaches the specified number.
24th Jun 2018, 11:52 PM
Daniel Cooper
Daniel Cooper - avatar
0
Everything I've tried has failed ;-;
24th Jun 2018, 11:26 PM
Daniel Cooper
Daniel Cooper - avatar