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

Tell us what’s happening:

Task is to fill out resetGame function.What is wrong?

Your code so far

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

/* file: styles.css */

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

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

// 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/132.0.0.0 Safari/537.36 Edg/132.0.0.0

Challenge Information:

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

Hi. You haven’t used the innerText or textContent methods to update the HTML in 2 places.