.displayed-img class) appear darker, but the last line of the function inside the event listener (
overlay.style.backgroundColor = xxx) doesn’t seem to be working, even though I entered it in the exact same way the assessment says. The text content of the button changes but the image doesn’t turn darker. Does anybody have an answer to this?
Link to my code: Image gallery assessment (codepen.io)