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

Function createBoard

MEMORY/index.js:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63 //create your board
64 function createBoard() {
65 for (let i = 0; i < cardArray.length; i++) {
66 const card = document.createElement('img')
67 card.setAttribute('src', 'images/blank.png')
68 card.setAttribute('data-id', i)
69 card.addEventListener('click', flipCard)
70 grid.appendChild(card)
71 }
72 }
73
74 //check for matches
75 function checkForMatch() {

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected