Tell us what’s happening:
The Instruction says to reference the resetGame function in the resetGameBtn “click” event. I believe I am doing that in my code but the test fails to pass.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function resetGame() {
playerScore = 0;
computerScore = 0;
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
roundResultsMsg.innerText = "";
winnerMsgElement.innerText = "";
resetGameBtn.style.display = "none";
optionsContainer.style.display = "block";
}
resetGameBtn.addEventListener("click", resetGame);
// 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/145.0.0.0 Safari/537.36
Challenge Information:
Build a Rock, Paper, Scissors Game - Step 13