Tell us what’s happening:
the instruction:
It should set the scoreInputs at that index to be enabled, set the value of that input to the score, and display , score = ${score} in the correct scoreSpans element.
my code:
const updateRadioOption = (index, score) => {
scoreInputs[index].value = score;
scoreSpans[index].textContent = , score = ${score}
;
}
the error:
2. updateRadioOption should update the scoreInputs element at the provided index to be enabled.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const updateRadioOption = (index, score) => {
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/136.0.0.0 Safari/537.36
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 6