Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10
Take a look at my code. Everytime button is pressed counter increments by one. Hopefully that is what you wanted. In my code the counter cycles through the "states" and then resets back to the first state but you should be able to modify it. Maybe modify last state so it alerts how many time button was smashed maybe. https://code.sololearn.com/WrXJ759AmW4Q/?ref=app
30th Aug 2019, 11:46 PM
SpaceJam♨
SpaceJam♨ - avatar