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
Copy file name to clipboardExpand all lines: Sprint-3/alarmclock/alarmclock.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
consttitle=document.querySelector('title')
2
+
title.textContent="Alarm clock app";
1
3
functiontime_convert(num){
2
4
letminutes=Math.floor((num%3600)/60);
3
5
letseconds=num%60;
@@ -12,7 +14,7 @@ function setAlarm() {
12
14
13
15
// ## How the clock should work
14
16
15
-
// 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`.
17
+
// 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`. => Done
16
18
17
19
// Every one second the title should count down by one.
0 commit comments