Tell us what’s happening:
what is the issue please tell me , i already update the text content
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
keepScoreBtn.addEventListener("click", () => {
selectedInput = undefined;
scoreInputs.forEach((element) => {
if (element.checked) {
selectedInput = element;
}
});
if (selectedInput === undefined) {
alert("select any option");
return;
} else {
const { value, id } = selectedInput;
updateScore(value, id);
resetRadioOptions();
totalScoreElement.innerText = score;
}
});
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 10