Skip to content

Commit 5c31335

Browse files
committed
feat: implement reset button functionality
1 parent c7b8a7a commit 5c31335

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ increaseBtn.addEventListener('click', () => {
2525
count++;
2626
updateDisplay();
2727
});
28+
29+
resetBtn.addEventListener('click', () => {
30+
count = 0;
31+
updateDisplay();
32+
});

0 commit comments

Comments
 (0)