Review Algorithmic Thinking by Building a Dice Game - Step 6

Tell us what’s happening:

Ive tried a few different things, not sure where to go from here. the error it is sending me is " 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].disabled = false;
  scoreInputs[index].value = score;
  scoreSpans.textContent[index] = ", 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/127.0.0.0 Safari/537.36

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 6

Hi @cole.riddle1

You almost got it.

Use scoreInputs as a guide to structure scoreSpans. The [index] positioning is not quite right.

Since you are using a template literal, you need to use back ticks.

Happy coding

1 Like