You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30f9803
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Sprint-3/alarmclock/alarmclock.js
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,33 @@
1
-
functionsetAlarm(){}
1
+
// ## How the clock should work
2
2
3
+
// When you click the `Set Alarm` button the counter at the top of the screen should change to the number you entered in the `input` field. For example, if the `input` field says `10` then the title should say `Time Remaining: 00:10`.
4
+
5
+
// Every one second the title should count down by one.
6
+
7
+
// When the `Time Remaining` reaches `00:00` the alarm should play a sound. You can make the sound happen by using `playAlarm()`.
8
+
9
+
// You can stop the alarm sound by pressing the `Stop Alarm` button.
0 commit comments