Looking at your generated cards in the js file, I saw you rendered all your cards on the page using HTML elements by using innerHtml which means the object array you created has no actual use.
Possible solution ♻️♻️
Add just card in your HTML in your innerHTML
You the forEach function to loop through your object array to generate all 4 cards
You can also use for loop
Thank you 🙏 , It's my pleasure 😊😊 I was able to debug your code.❤️
Hide and Seek Bugs 🐞 🪲
Looking at your generated cards in the js file, I saw you rendered all your cards on the page using
HTML
elements by usinginnerHtml
which means the object array you created has no actual use.Possible solution ♻️♻️
innerHTML
forEach
function toloop
through your object array to generate all 4 cardsfor loop
Thank you 🙏 , It's my pleasure 😊😊 I was able to debug your code.❤️