Assessment needed for Events Tasks 1, and 2 please 🙏!

https://jsfiddle.net/weirdkidwithwindows/k7o1n0t4/2/ Events 1

https://jsfiddle.net/weirdkidwithwindows/0nubxwsy/ Events 2

Hi @michellaneous and welcome to the community :wave:

Congratulations! Both tasks work correctly.

Nonetheless I have two comments :slightly_smiling_face:

  • 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

Thanks, @mikoMK! Will definitely try those out :nerd_face:

1 Like