Is this question related to our previous lesson.how can you ask me how many times HTML5 event can be fired?🤲 | Sololearn: Learn to code for FREE!

+2

Is this question related to our previous lesson.how can you ask me how many times HTML5 event can be fired?🤲

8/30/2019 11:00:31 PM

Anistar

1 Answer

New Answer

+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