Skip to content

Commit 6a5d331

Browse files
clears time with intervalId to null
1 parent 3a4bb35 commit 6a5d331

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function startCountdown(){
3232

3333
if (timeRemaining <= 0) {
3434
clearInterval(intervalId);
35+
intervalId = null;
3536
playAlarm();
3637
document.body.classList.add("flash");
3738
}

0 commit comments

Comments
 (0)