Tell us what’s happening:
Hi,
Can someone please help with this, I don’t know what I am missing
Thanks
Iskren
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function resetGame() {
playerScore = 0;
computerScore = 0;
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
resetGameBtn.style.display = none;
optionsContainer.style.display = 'block';
winnerMsgElement.innerText = "";
roundResultsMsg.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/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Challenge Information:
Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 6
Hi @iskren500
Empty the declaration block of the function body by commenting out all the code.
Then uncomment one line at a time, testing the code each time.
This will you will narrow down which line is causing the test to fail.
Happy coding
1 Like
resetGameBtn.style.display = none;
none needs to be in quotation marks
removed by mod
It would help if you could explain why, instead of providing solution code
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.