Tell us what’s happening:
i could not understand whats the problem, system warning is “your updatescore func should convert string value to integer and add the value to the total score”
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
};
const updateScore = (value, id) => {
let selectedValue = parseInt(value);
let achieved = id;
totalScoreElement.innerText += `${parseInt(totalScoreElement.innerText)} + ${selectedValue} `;
scoreHistory.innerHTML += `<li>${achieved} : ${selectedValue}</li>`;
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 9