I’ve just finished the Random Quote Generator project, but am trying to switch from onclick (which seems to work great) to addEventListener, and I’m not sure why it’s not working. They auto fire, without me clicking.
Caution: contains spoilers
I’m not sure how to paste my code in here, but the link to codepen is
Any help with solving the addEvent problem in changing images on click would be much appreciated.
Cheers,
Rich