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

Tell us what’s happening:

Got the code right (compared it to other ones), but it’s still not letting me pass. It says “my resetGame function should set the playerScore to 0” even though it does.

I tried refreshing still doesn’t work. Though I haven’t tried resetting the whole session cause I don’t want to re-write everything while having the chance to not pass me again.

Please let me know if this is just a bug on my end. I’d be more willing to reset it.

Your code so far

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

/* file: styles.css */

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

function resetGame() {
  playerScore = 0;
  computerScore = 0;
  computerScoreSpanElement.innerText = computerScore;
  playerScoreSpanElement.innerText = playerScore;
  resetBtn.style.display = "none"
  options.style.display = "block"
  roundResultMsg.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

Welcome to the forum!

The issues lie here:

Check for the names of the first two elements in the rest of the code and correct the typo in the third.