diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index d5fcc3a2ae..dd446878d1 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -2,51 +2,194 @@ - Scoped CSS Variables and JS + Whack A Mole! + + -

Update CSS Variables with JS

-
- - +

Whack-a-mole! 0

+ + - - - - - +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- + + + + // 6. JS: ADD EVENT LISTENER FOR RESET BUTTON + resetScoreBtn.addEventListener('click', () => { + score = 0; // Reset score variable + scoreBoard.textContent = score; // Update display + localStorage.removeItem('whackAMoleScore'); // Remove score from storage + }); + - + \ No newline at end of file