Tell us what’s happening:
the hint that is being shown is When your keepScoreBtn is clicked, the score should be updated in the totalScoreElement text. But I am calling updatescore function which is going to update the totalScoreElement yet I am not able to understanc what is wrong. Could someone help me out with this ?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
keepScoreBtn.addEventListener("click",() => {
for(let input of selectInputs){
if(input.checked){
updateScore(input.value, input.id);
resetRadioOptions();
return;
}
}
alert("Please select an option");
});
// 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/130.0.0.0 Safari/537.36
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 10