https://jsfiddle.net/weirdkidwithwindows/k7o1n0t4/2/ Events 1
Hi @michellaneous and welcome to the community
Congratulations! Both tasks work correctly.
Nonetheless I have two comments
- Task 1: It would probably be more robust to use the class in the condition and change it, too. Texts tend to change over time (in real projects).
- Task 2: Instead of filling the whole canvas with white you could also use the
clearRect()
method.
I hope that helps. Have a nice day,
Michael
1 Like