Review Algorithmic Thinking by Building a Dice Game - Step 6

Tell us what’s happening:

It keeps telling me “updateRadioOption should be a function” but it is a function.

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region


function updateRadioOption(index, score) {
  scoreInputs[index].disabled = false
  scoreInputs[index].value = score
  scoreSpans[index].innerText = ", score = "${score}
}

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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 6

It wont pass that way, it will only take an arrow function

use arrow function instead of regular function

This code is causing a problem (do you see any errors in the console?)

To fix it, you should use backticks around the whole thing and not use quotes.

(For the earlier comments, I don’t think you have to use arrow functions here, but after you fix this, let us know if you still see errors)

No, it doesn’t have to be an arrow function.

As said, you can’t use string interpolation without a template literal.