Review Algorithmic Thinking by Building a Dice Game - Step 6

Tell us what’s happening:

Hi … I’m confused " 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

function updateRadioOption(score, index) {
  scoreInputs[index].disabled = false;
  scoreSpans[index].textContent = `, score = ${score}`;
};

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 6

There are three tasks to accomplish here, did you code each one?

set the scoreInputs at that index to be enabled,
set the value of that input to the score
display , score = ${score} in the correct scoreSpans element.

1 Like

okay … done … one more code line

Mod edit: code removed

1 Like