Skip to content

Commit ee63ed7

Browse files
committed
clear the input field after user click set alarm
1 parent 229a2de commit ee63ed7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sprint-3/alarmclock/alarmclock.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ function setAlarm() {
2828
clearInterval(timerId);
2929
timerId = null;
3030
remainingSeconds = inputValue;
31-
31+
3232
updateDisplay();
3333
startCountdown();
34+
input.value = "";
3435
}
3536

3637
// DO NOT EDIT BELOW HERE

0 commit comments

Comments
 (0)