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

Function endGame

Rock-Paper-Scissors-Game/script.js:76–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75// ** endGame function clears all the text on the DOM **
76function 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 **
86playGame()

Callers 1

playGameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected