Review Algorithmic Thinking by Building a Dice Game - Step 12

Tell us what’s happening:

Bonjour !
Je suis bloqué ici voici l’erreur que ça affiche mais je ne comprend pas

Your code so far

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

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

const resetGame = () =>{
  
  diceValuesArr =[0, 0, 0, 0, 0];
  score = 0;
  rolls = 0;
  round = 1;
   totalScore.value = score;
  scoreHistory.innerHTML = "";

  currentRoundRolls.textContent = rolls;
  currentRound.textContent = round;

  resetRadioOptions();
}

rollDiceBtn.addEventListener("click", () => {
  if (rolls === 3) {
    alert("You have made three rolls this round. Please select a score.");
  } else {
    rolls++;
    resetRadioOptions();
    rollDice();
    updateStats();
    getHighestDuplicates(diceValuesArr);
  }
});

rulesBtn.addEventListener("click", () => {
  isModalShowing = !isModalShowing;

  if (isModalShowing) {
    rulesBtn.textContent = "Hide rules";
    rulesContainer.style.display = "block";
  } else {
    rulesBtn.textContent = "Show rules";
    rulesContainer.style.display = "none";
  }
});

keepScoreBtn.addEventListener("click", () => {
  let selectedValue;
  let achieved;

  for (const radioButton of scoreInputs) {
    if (radioButton.checked) {
      selectedValue = radioButton.value;
      achieved = radioButton.id;
      break;
    }
  }

  if (selectedValue) {
    rolls = 0;
    round++;
    updateStats();
    resetRadioOptions();
    updateScore(selectedValue, achieved);
    if (round > 6) {
      setTimeout(() => {
        alert(`Game Over! Your total score is ${score}`);
        resetGame();
      }, 500);

    }
  } else {
    alert("Please select an option or roll the dice");
  }
});

// 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/127.0.0.0 Safari/537.36

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 12

Bonjour,

vous modifiez la variable diceValuesArr, alors que dans les instructions, on vous demande de changer le texte des éléments d’entrée, donc supprimez cette ligne diceValuesArr = [0, 0, 0, 0, 0]; et mettez à jour le texte des éléments de la liste de tableaux listOfAllDice.