-
-
Notifications
You must be signed in to change notification settings - Fork 193
Glasgow | ITP-SEP-25 | Alaa Tagi | Sprint 3 | feature/alarmclock #888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Sprint-3/alarmclock/alarmclock.js
Outdated
| function updateDisplay(t) { | ||
| const minutes = String(Math.floor(t / 60)).padStart(2, "0"); | ||
| const seconds = String(t % 60).padStart(2, "0"); | ||
| heading.innerText = `Time Remaining: ${minutes}:${seconds}`; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good use of modularity to extract updateDisplay behaviour. Could this sit outside of the setAlarm function to further decouple the functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Poonam-raj i did that .
A-O-Emmanuel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your alarm clock app works, but the only issues i have is, when i click the set alarm button the alarm goes off even when the input box is empty, that needs to be fixed
|
@Poonam-raj I fixed the issue where the alarm would start even when the input was empty. |
Learners, PR Template
Self checklist
Changelist
I have completed the tasks required in this sprint.
Questions
No questions.