Review Algorithmic Thinking by Building a Dice Game - Step 10

Tell us what’s happening:

I am getting an element saying that :When your keepScoreBtn is clicked, the score should be updated in the totalScoreElement text.

Your code so far

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

/* file: styles.css */

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

keepScoreBtn.addEventListener('click', () => {
  const chosenInput = scoreInputs.find((input) => input.checked);
  if (chosenInput) {
    const chosenValue = chosenInput.value;
    const chosenId = chosenInput.id;
    updateScore(chosenValue, chosenId);
    resetRadioOptions();
  } else {
    alert('Please select an input');
  }
})

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

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 10

Hi @razzz

Open the console, then play a few rounds.

Happy coding

Hi friend, I have tried opening the console with chrome dev tools and nothing happens when I play the game. I also tried fCC console on last step and same thing. Any solutions?

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.