Review Algorithmic Thinking by Building a Dice Game - Step 9

Tell us what’s happening:

can’t advance from step 9, my answer next!
const updateScore = (selectedValue, achieved) => {
total += Number(selectedValue);
totalScore.textContent = total;

const newListItem = document.createElement(‘li’);
newListItem.textContent = ${achieved}: ${selectedValue};
scoreHistory.appendChild(newListItem);
}

Your code so far

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

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

const updateScore = (selectedValue, achieved) => {
  total += Number(selectedValue);
  totalScore.textContent = total;

  const newListItem = document.createElement('li');
  newListItem.textContent = `${achieved}: ${selectedValue}`;
  scoreHistory.appendChild(newListItem);
}



// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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 9

there’s a known issue with the description of this step.
They actually meant ‘score’ not ‘total score’.