MCPcopy Create free account
hub / github.com/codemistic/Web-Development / createBoard

Function createBoard

Memory Game/app.js:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58const cardWon = [];
59
60function createBoard() {
61 for (let i = 0; i < cardArray.length; i++) {
62 const card = document.createElement("img");
63 card.setAttribute("src", "img/blank.png");
64 card.setAttribute("data-id", i);
65 card.addEventListener("click", flipCard);
66 grid.appendChild(card);
67 }
68}
69
70createBoard();
71

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected