Can someone remind me how to enable a variable at an index?

I need to enable this variable at the provided index, but can’t seem to sort it out. It seems like everything else is correct except I don’t know how to enable the variable at the provided index. Can anyone help me out? Tips, hints, advice, anything.

const updateRadioOption = (index, score) => {
scoreInputs[index] = /?how do I enable a variable at an index?/;
scoreInputs[index].value = score;
scoreSpans[index].textContent = , score = ${score};


What do you mean by “enable a variable”?
For eg is the variable a boolean? If so you can directly set it to true or false.

1 Like

It’s something the site was prompting me about. I ended up figuring it out right after posting this though. Thank you.

1 Like