We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a0a64 commit dfa1f57Copy full SHA for dfa1f57
Sprint-3/alarmclock/alarmclock.js
@@ -17,15 +17,15 @@ function displayAlarm(time) {
17
}
18
19
function decreaseAlarmTime() {
20
- timeRemaining--;
21
- displayAlarm(timeRemaining);
22
-
23
if (timeRemaining <= 0) {
24
clearInterval(timerInterval);
25
timerInterval = null;
26
timeRemaining = 0;
27
playAlarm();
28
+
+ timeRemaining--;
+ displayAlarm(timeRemaining);
29
30
31
function setAlarm() {
@@ -36,6 +36,7 @@ function setAlarm() {
36
37
38
39
40
timerInterval = setInterval(decreaseAlarmTime, 1000);
41
42
0 commit comments