Tell us what’s happening:
It kept telling me “Your resetGame function should set the playerScore to 0” even though i already did it. What should i do?
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
function resetGame() {
playerScore = 0;
computerScore = 0;
computerScoreSpanElement.innerText = computerScore;
playerScoreSpanElement.innerText = playerScore;
resetGameBtn.style.display = "none";
optionsContainer.style.display = "block";
winMsgElement.innerText = "";
roundResultsMsg.innerText = "";
};
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Challenge Information:
Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6