Hi,
I’ve done task 3 from the chapter about events. I used ‘event’s delegation’.
Please have a look at my code:
Events 3
Hi,
I’ve done task 3 from the chapter about events. I used ‘event’s delegation’.
Please have a look at my code:
Events 3
Hi @CX-Cris,
Great code again. It works and thats what matters most. I will point out two things
will set the background of the
button-barto the color contained in the button’sdata-colorattribute.
what your code does is use the innertext which works but isnt what the task asks you to do. Can you refactor your code so that it uses the data attributes? in this case it sets the color based on the “data-color” attribute.
Good luck and enjoy.
Ran