Skip to content

Commit 0496416

Browse files
created a global variable to toggle pause an set it to false
1 parent 67ca5df commit 0496416

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
let timeRemaining = 0;
22
let intervalId = null;
3+
let isPaused = false;
4+
35

46
function setAlarm() {
57
const input = document.getElementById("alarmSet");

0 commit comments

Comments
 (0)