Assessment needed for event 1

I solved event 1 tasks like this, here is my code

Hi @iidlex99

Nice work!

I recommend deciding on the machine state with the attached class. Button texts (and texts in general) tend to change over time. Using something like if (btn.className === 'on') and also changing the class feels more stable.

I hope that helps,
Michael

Thanks for your feedback

1 Like