Assessment wanted for Events 3 skills test

Sir Chris,

My hope is that my frequent questions will not eat away at your soul. Apologies. Please, when you have a moment see my answer for Events #3. My solution works, but it does bubble.

https://jsfiddle.net/cazzimoto/gtrf8zms/13/

Also, I haven’t the slightest clue on Events #2. I am shamelessly going to ask for the solution… or better a hint at how to solve.

Thank you!!!

V/R,
cazzimoto

Hi there @cazzimoto!

My hope is that my frequent questions will not eat away at your soul.

Certainly not — I’ve been working for silicon valley tech companies long enough that I no longer have a soul :wink:

You are on the right track with #3 — bubbling is the right way to go! However, the code inside the event handler function could be a lot simpler; you could just grab the color value directly from the event target’s data-color attribute. See our solution for this approach: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/tasks/events/marking.md#task-3

#2 is quite hard, and requires some research. See here for our solution: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/tasks/events/marking.md#task-2