Tell us what’s happening:
I am not sure what the issue is here.
It seems like it should be correct when I read through it.
The preview is working as intended.
I’ve got no other ideas.
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
rulesBtn.addEventListener("click", () => {
isModalShowing = !isModalShowing;
rulesBtn.textContent = isModalShowing ? "Hide Rules" : "Show Rules";
rulesContainer.style.display = isModalShowing ? "block" : "none";
})
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Challenge Information:
Review Algorithmic Thinking by Building a Dice Game - Step 2