Skip to content

Commit 3fcc665

Browse files
committed
reset input box after a timer starts
1 parent 5893a8c commit 3fcc665

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function setAlarm() {
1616
return;
1717
}
1818

19+
timeInput.value = "";
20+
1921
const timeRemaining = document.getElementById("timeRemaining");
2022

2123
timeRemaining.textContent = `Time Remaining: ${timeConvert(remainingSeconds)}`;

0 commit comments

Comments
 (0)