Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6

Tell us what’s happening:

help post!
It keeps on saying you should keep your playerScore to 0;
which I have already done it.
I also tried it another way
like

function resetGame() {
playerScore = 0;
computerScore = 0;
playerScoreSpanElement = 0;
computerScoreSpanElement = 0;
resetGameBtn.style.display = ‘none’;
optionsContainer.style.display = ‘block’;
winnerMsgElement.innerText = ‘’;
roundResultsMsg.innerText = ‘’;
};

but it shows the same error…

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

function resetGame() {
 playerScore = 0;
 computerScore = 0;
 playerScoreSpanElement = playerScore;
 computerScoreSpanElement = computerScore;
 resetGameBtn.style.display = 'none';
 optionsContainer.style.display = 'block';
 winnerMsgElement.innerText = '';
 roundResultsMsg.innerText = '';
};

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6

Hi there. You have issue in the above assignments. You aren’t updating the text content of span elements for player and computer.

1 Like