Build a Rock, Paper, Scissors Game - Step 8

Tell us what’s happening:

Hel with Buld a Rock, Paper Scissors step 8 not passed

Your code so far

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

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

const computerScoreSpanElement = document.getElementById("computer-score");
const roundResultsMsg = document.getElementById("results-msg");

function showResults (userOption){
  roundResultsMsg.textContent = getRoundResults(userOption);
  playerScoreSpanElement.textContent = `Player Score: ${playerScore}`;
   computerScoreSpanElement.textContent = `Computer Score: ${computerScore}`

}

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

Challenge Information:

Build a Rock, Paper, Scissors Game - Step 8

if you do this, doesn’t the text get doubled?

No it doesn’t get doubled

Investigate those elements in the HTML

Resolved Thanks I was changing the label with the score instead of only the score. Thanks

1 Like

I now get by the text being doubled. Thanks the problem is resolved!