Cards won't appear in a card matching game Im making

Question:
I’m trying to make the cards appear through my function createCards(parentElement, shuffledImageClasses) however it doesnt appear to be working if anyone can help it would be greatly appreciated ty in advance

Repl link:
https://replit.com/@coding-for-web-fall-23/Portfolio-Project-Match-Game-hugoderby340

function createCards(parentElement, shuffledImageClasses) {
  let cardObjects = [];
  for (let i = 0; i < 12; i++) {
    let newCard = appendNewCard(parentElement);
    newCard.classList.add(shuffledImageClasses[i]);
    let cardObject = {
      index: i,
      element: newCard,
      imageClass: shuffledImageClasses[i]
    };
    cardObjects.push(cardObject);
  }
  return cardObjects;

FYI to anyone who wants to help, the Repl is a Teams for EDU project, so you can only access the code through the website (https://portfolio-project-match-game-hugoderby340.coding-for-web-fall-23.repl.co/).

2 Likes