Skip to content

Commit 3f63303

Browse files
committed
code inside resetTimer() amended
1 parent f691b29 commit 3f63303

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sprint-3/alarmclock/alarmclock.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ function resetTimer() {
66
clearInterval(timerInterval);
77
timerInterval = null;
88
}
9+
10+
// Stop any playing alarm sound
11+
pauseAlarm();
12+
13+
// Reset display to 00:00
14+
updateTimeDisplay(0);
915
}
16+
1017
//Starts the alarm counbtdown
1118
function setAlarm() {
1219
// Read the minutes value from the alarm input field

0 commit comments

Comments
 (0)