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

Tell us what’s happening:

The game works. It keeps asking me to set playerScore to 0. I did that. Why won’t it pass?

Your code so far

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

/* file: styles.css */

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

function resetGame() {
playerScoreSpanElement.innerText = "0";
computerScore=0;
playerScore=0;
computerScoreSpanElement.innerText = "0";
roundResultsMsg="";
winnerMsgElement="";
}

// User Editable Region

Your browser information:

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

Challenge Information:

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

Welcome to the forum @harjotsingh22nov

These two lines are not correctly syntaxed.

Happy coding

I think you forgot to use the “innerText” property on roundResultMsg and winnerMsgElement