Review Algorithmic Thinking by Building a Dice Game - Step 10

Tell us what’s happening:

Cannot seem to get both the radio option to reset and the alert to register. I had it both work independently and previous attempts, but since i changed the code i cannot get it to work at all

Your code so far

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

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

keepScoreBtn.addEventListener("click", () => {


  for(let input of scoreInputs) {
    if(input.checked) {
      updateScore(input.value, input.id);
      return;
    }    
  };

  if (value) {
    rolls = 0;
    round++;
    updateStats(); 
     resetRadioOptions();
  } else {
  alert("Please select an option")
  }
});

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

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 Edg/131.0.0.0

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 10

hello and welcome to fcc forum :slight_smile:

do you see any “input” elements in there? using “console.log”? if so, then check is there any “checked” attribute exists or not

happy coding :slight_smile: