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

Tell us what’s happening:

I keep getting the error “Your resetGame function should set the playerScore to 0”. I don’t see how what I did is wrong.

Your code so far

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

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0

Challenge Information:

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

The error ended up being in another line. The hint at what is wrong is misleading.

I’m having the same issue and I can’t seem to find it. Do you mean perhaps this error is outside the scope of this function?

I am having the same trouble. Can you tell me what did you do to find the error? and what the error was and where was it?

Hi there!
Create your own topic to the challenge step using the help button, that’s appears after attempting check your code button more than three times.