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

Tell us what’s happening:

I cant get passed step 6 because there is an error in my code at “optionContainer” but don’t know how to fix it please help

Your code so far

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

/* file: styles.css */

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

function resetGame(userOption)  {

playerScore = 0;
computerScore = 0;
playerScoreSpanElement.innerText = "0";
computerScoreSpanElement.innerText = "0";
resetGameBtn.style.display = "none";
optionContainer.style.display = "block";
roundResultsMsg.innerText = "";
winnerMsgElement.innerText = "";

};

// 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/123.0.0.0 Safari/537.36 OPR/109.0.0.0

Challenge Information:

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

Hi there!

You have updated the 0 strings to those two variables. You need to update it with the player score and computer score.

1 Like

function parameter should be empty. You have modified it.

1 Like

optionsContainer is missing s.

1 Like