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

Tell us what’s happening:

What I’ve done works, so I don’t understand why it’s not considered good? Surely there must be a better way to do it, but I thought my solution was fine. Can anyone tell me what I cannot see with my novice eye?

Your code so far

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

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

const playerScoreSpanElement = document.getElementById("player-score");
const computerScoreSpanElement = document.getElementById("computer-score");
const roundResultsMsg = document.getElementById("results-msg");
const winnerMsgElement = document.getElementById("winner-msg");
const optionsContainer = document.querySelector(".options-container");
const resetGameBtn = document.getElementById("reset-game-btn");

function showResults(userOption) {
  roundResultsMsg.innerText = getRoundResults(userOption);
  computerScoreSpanElement.innerText = computerScore;
  playerScoreSpanElement.innerText = playerScore;
  if (playerScore >= 3) {
    winnerMsgElement.innerText = "Player has won the game";
    resetGameBtn.style.display = "block";
    optionsContainer.style.display = "none";
  } else if (computerScore >= 3) {
    winnerMsgElement.innerText = "Computer has won the game";
    resetGameBtn.style.display = "block";
    optionsContainer.style.display = "none";
  }

};

// 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/131.0.0.0 Safari/537.36 OPR/116.0.0.0 (Edition std-2)

Challenge Information:

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

Welcome to the forum @Rayanity

Carefully check the text of the output message.

Hint: it is missing something.

Happy coding