Tell us what’s happening:
Help me to fix the error
Error meassage: updateRadioOption should update the text of the scoreSpans element at the provided index to be the text ", score = " followed by the given score.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const updateRadioOption=(index,score)=>{
scoreInputs[index].disabled= false;
scoreInputs[index].value= score;
scoreSpans[index].textContent=`, score= ${score}`;
}
// 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 6