Build a Rock, Paper, Scissors Game - Step 13

Tell us what’s happening:

Hello, can anyone help me. My code seems fine but I keep getting a message : ‘1. You should add an event listener to the resetGameBtn button. The event listener should take in a “click” event and a reference to the resetGame function.’

Your code so far

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

/* file: styles.css */

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

function resetGame(){
  roundResultsMsg.innerHTML = "";
  winnerMsgElement.innerHTML = "";

  playerScore = 0;
  computerScore = 0;

  playerScoreSpanElement.innerHTML = playerScore;
  computerScoreSpanElement.innerHTML = computerScore;

  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/136.0.0.0 Safari/537.36

Challenge Information:

Build a Rock, Paper, Scissors Game - Step 13

you should not create the resetGame function in this step, do only what is asked, ie the addeventlistener

Ok, I figured it out but thank you so much