Assessment wanted for Image Gallery AlexRdz

https://codepen.io/alejandrordzlpz/pen/PoZqEdN

This, I did it with so many const because further exploring. I think I wrote redundant lines because of rookieness.

Thanks for your opinions and help!

Hi @AlejandroRdzLpz, and welcome to the community. Thanks for sending in your code!

Your example works great, and I love the Pokemon pictures. I play a lot of Pokemon with my daughters :wink:

Your code is a little bit verbose, but this is fine at this stage, as long as you get it work, and understand why it is working. If you want to, you can have a look at our version, which takes a very similar approach but uses slightly less lines of code: https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/gallery/main.js

All the best, and good luck with your future coding!