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}
;
};