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