()
| 104 | |
| 105 | //flip your card |
| 106 | function flipCard() { |
| 107 | let cardId = this.getAttribute('data-id') |
| 108 | cardsChosen.push(cardArray[cardId].name) |
| 109 | cardsChosenId.push(cardId) |
| 110 | this.setAttribute('src', cardArray[cardId].img) |
| 111 | if (cardsChosen.length ===2) { |
| 112 | setTimeout(checkForMatch, 500) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | createBoard() |
| 117 | }) |
nothing calls this directly
no outgoing calls
no test coverage detected