Review Algorithmic Thinking by Building a Dice Game - Step 9

Tell us what’s happening:

Everything seems in order but i just keep getting this Error message
When updateScore(10, “hi”) is called, your new list element should have the text hi : 10.

Your code so far

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

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

const updateScore = (selectedValue, achieved) => {
  score=parseInt(selectedValue);
  totalScoreElement.textContent= score;
  scoreHistory.innerHTML+=`<li>${achieved} : ${selectedValue} </li>`;
};
updateScore(10, "hi");

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

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 9

maybe you need to remove the space before the closing tag

1 Like

Funny how such a little problem kept me on this step for 2days now…Thanks for the observation