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

Tell us what’s happening:

hello… please is there any clue why my hide resetGame button is not working?

Your code so far

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

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

function resetGame() {
playerScore = '0';
computerScore = '0';
playerScoreSpanElement.innerText = '0';
computerScoreSpanElement.innerText = '0';
roundResultsMsg.innerText = '';
winnerMsgElement.innerText = '';
resetGame.resetGameBtn = ('hide')
}

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge Information:

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

Look further up in your code and you should find these two lines:

resetGameBtn.style.display = "block";
optionsContainer.style.display = "none";

This is where you hid your options container and made your reset button visible when the game ended. When the reset button is pressed, you’ll want to reverse this, by hiding the reset button and displaying the options container again.

okay thank you so much

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.