Tell us what’s happening:
Apparently do not understand the problem and need help with syntax. My error says “You should assign count to the highestCount.”
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
for (const num of arr) {
const count = counts[num];
if (count >=3 && count > highestCount){
count = highestCount;
}
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) 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 40