Glasgow | May-2025 | Mansoor Munawar | Sprint 3 | alarm clock #769
Glasgow | May-2025 | Mansoor Munawar | Sprint 3 | alarm clock #769MansoorM11 wants to merge 4 commits intoCodeYourFuture:mainfrom
Conversation
There was a problem hiding this comment.
-
Code works fine if a user only clicks the "Set Alarm" button once.
However, if the user enters a time and then clicks the "Set Alarm" button multiple times, the countdown clock will not display properly.
Can you fix the issue? -
Some unusual input values can "spoil" the timer display. Can you add code to reject or convert this kind of values?
-
The Self-checklist in the PR description is not properly checked in MarkDown syntax. Can you fix the checkboxes?
|
Hi CJ, I have now made the required adjustment based on the feedback. Thanks |
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good. You introduced a new bug to your code though.
Sprint-3/alarmclock/alarmclock.js
Outdated
| return; | ||
| } | ||
|
|
||
| if ((remainingSeconds > 86, 400)) { |
There was a problem hiding this comment.
Have you tested input like 86400?
There was a problem hiding this comment.
Totally missed that. I fixed bug and now it should accept values upto 24 hours. Thanks
Self checklist
Changelist
Briefly explain your PR.
Created multiple functions in order for the alarm clock to work correctly according to set requirements
Questions
Ask any questions you have for your reviewer.