# Learn Intermediate Algorithmic Thinking by Building a Dice Game - Step 57

### Tell us what’s happening:

Test results is telling me to create a for…of loop with a variable of radioButton. I did. I bet the formatting is not acceptable, yet again. I tried different ways of formatting, no spaces, a new line in the loop content, not accepted. I copy and pasted the variable names so they are correct. I did ctrl+f5 to see if my browser was causing troubles, or an update just rolled out, no help. Does someone know the correct formatting?

``````keepScoreBtn.addEventListener("click", () => {
let selectedValue;
let achieved;
for (radioButton in scoreInputs) { }
});
``````

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

``````Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
``````

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36`

### Challenge Information:

Learn Intermediate Algorithmic Thinking by Building a Dice Game - Step 57

Hi there. The challenge states to use a “for…of”.

Use a `for...of` loop to loop through each of the `scoreInputs`

Additionally you didn’t really declare the variable `radioButton`. Think about how variables are declared. Is there anything you missing?

Happy learning.

Edit: Additional information on the `for...of` loop. The key difference between it and a `for...in` loop is that `foor...of` loops iterate over the values, not the keys.

1 Like

There goes my years C# interfering again. Not surprised at the screw ups. I have been going through some rough times with no end in sight, and no help. These forums have been a huge help when it comes to these courses, thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.