Hey there !
I can’t tell if it’s okay to post JS stuff that isn’t related to FCC, but I think this is still relevant as a learning process.
What I need to achieve is a list of cat names, and each of the links makes the appropriate cat data appears on the right side.
I have read a bit that in order to allocate the current “i” value within a for loop, you’d have to use an IIFE function in addEventListener, but so far, the first element fires away on page load, and nothing responds to clicks after that.
Problem is around line 34 : https://codepen.io/Mizujin/pen/rLOexW
Your help is greatly appreciated !