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 c6a99b3 commit 4a802b8Copy full SHA for 4a802b8
Sprint-3/alarmclock/alarmclock.js
@@ -13,11 +13,9 @@ function startAlarm() {
13
document.getElementById("alarmSet").disabled = true;
14
document.getElementById("start").disabled = true;
15
document.getElementById("stop").disabled = false;
16
-
17
- timerId = setInterval(() => {
18
- timeLeft--;
19
document.getElementById("timeRemaining").innerText = formatTime(timeLeft);
20
+timerId = setInterval(() => {
+ timeLeft--;
21
if (timeLeft <= 0) {
22
clearInterval(timerId);
23
timerId = null;
0 commit comments