Tell us what’s happening:
I can’t see why this code doesn’t work
function resetGame() {
playerScore = 0;
computerScore = 0;
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
roundResultsMsg.innerText = “”;
winnersMsgElement.innerText = “”;
resetGameBtn.style.display =‘block’;
optionsContainer.style.display =‘none’;
};
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;
roundResultsMsg.innerText = "";
winnersMsgElement.innerText = "";
resetGameBtn.style.display ='block';
optionsContainer.style.display ='none';
};
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15
Challenge Information:
Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6