()
| 74 | |
| 75 | // ** endGame function clears all the text on the DOM ** |
| 76 | function endGame() { |
| 77 | let playerScore = document.getElementById('player-score') |
| 78 | let hands = document.getElementById('hands') |
| 79 | let result = document.getElementById('result') |
| 80 | playerScore.innerText = '' |
| 81 | hands.innerText = '' |
| 82 | result.innerText = '' |
| 83 | } |
| 84 | |
| 85 | // ** endGame function clears all the text on the DOM ** |
| 86 | playGame() |