Tell us what’s happening:
It keeps failing me and I can’t seem to figure out why. The game seems to reset the score but anything after the Score reset seems to not work.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function resetGame() {
playerScore = 0;
computerScore = 0;
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
resetGameBtn.syle.display = "none";
optionsContainer.syle.display = "block";
winnerMsgElement.innerText = "";
roundResultsMsg.innerText = "";
};
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6