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!
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
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: learning-area/javascript/building-blocks/gallery/main.js at main · mdn/learning-area · GitHub
All the best, and good luck with your future coding!