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

Tell us what’s happening:

My code gives me this error: Your resetGame function should set the playerScore to 0.
And I still cannot get what is wrong. Please help me to understand which line contains an error

Your code so far

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

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

function resetGame() {
  playerScore = 0;
  computerScore = 0;
  playerScoreSpanElement.innerText = playerScore;
  computerScoreElement.innerText = computerScore;

  resetGameBtn.style.display = "none"; 
  optionContainer.style.display = "block"; 

  roundResultsMsg.innerText = ""; 
  winnerMsgElement.innerText = ""; 

  
};

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

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/15.6.1 Safari/605.1.15

Challenge Information:

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

Hi there and welcome to our community!

You have a couple of mistyped variable names:

Fix them and your code should pass.

Thank you so much. I didn’t see the typos and was struggling since yesterday. Thanks a lot

1 Like