Programming Challenge 2: Changing Styles on Button Clicks
In this lesson, we will cover a really useful challenge on event listeners to modify the styling of selected HTML elements when a user performs a certain action!
We'll cover the following...
Challenge:
You can access a DOM element’s font color using Element.style.color
. Use an event listener (and the random color generator) to change ...