Review Algorithmic Thinking by Building a Dice Game - Step 10

Tell us what’s happening:

I don’t know what I’m missing for this to work I thought calling the updateScore function would update the totalScoreFunction but that doesn’t seem to b working

Your code so far

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

/* file: styles.css */

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

keepScoreBtn.addEventListener("click", () => {
  const selectedOption = document.quearySelector('input[name="score":checked');

if (selectedOption) {
  const value = selectedOption.value;
  const id = selectedOption.id;

  updateScore(value, id);
  resetRadioOptions();
  scoreHistory.innerHTML += `<li>Round ${round}: ${id} - ${value}</li>`;

  round++; 
  rolls = 0;
  updateStats();

} else {
  alert("Please select an option.");
}
})

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 10

Hey hi @DviantCodePup , querySelector is misspelled as queArySelector. Try changing it and let me know if you face any issues further. Thankyou!

I fixed my misspelling of querySelector but it still not going threw but thank u either way for poiting that out to me

In the same line, the square bracket [ is opened but not closed. Please check this correction and let me know if it resolves the issue. Thank you!