Review Algorithmic Thinking by Building a Dice Game - Step 4

Tell us what’s happening:

Task is to make rollDiceBtn event listener and show alert if clicked three times.What is wrong?

Your code so far

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

/* file: styles.css */

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

rollDiceBtn.addEventListener("click", () => {
  rollDice();roll++;if(rolls===3){rollDiceBtn.disabled=true;alert("Please select a score");button.disabled=false}
});

// 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/142.0.0.0 Safari/537.36 Edg/142.0.0.0

Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 4

You probably would have easily seen this if your code had been formatted:

The three dots beneath the r in roll means that variable name is not recognized.