Repository navigation
Manchester | 26-ITP-Sept | Aklilu Mihtsun | Sprint 3 | Build an alarm clock app - #1583
AkliluMihtsun wants to merge 5 commits into
Conversation
| countdown = setInterval(() => { | ||
| remainingSeconds--; | ||
|
|
||
| updateDisplay(); | ||
|
|
||
| if (remainingSeconds <= 0) { | ||
| playAlarm(); | ||
| clearInterval(countdown); |
There was a problem hiding this comment.
Once this interval is running, what happens to it when the user clicks Stop Alarm before it reaches zero?
To "like" or "dislike" this comment, please follow this link
|
The CYF AI review has left comments. It will only review a PR one time. When you have addressed these comments, please request review again and a volunteer will take a look. |
iscmiguelsamaniego
left a comment
There was a problem hiding this comment.
Thank you so much for sharing your work across today's katas and alarm clock files! Your logic, tests, layout, and styling show real thought and effort.
Just a couple of gentle questions to explore: how do edge cases (like NaN, sparse slots, or floats) and untouched test selectors (#set vs. #start) or color contrast behave here? You're doing awesome—keep it up!
There was a problem hiding this comment.
Thank you so much for sharing this! Formatting mm:ss with padStart and clearing intervals is super thoughtful.
Just a gentle question: what happens if the user changes the input after pausing, or if start isn't part of the expected setup? You're doing great—keep it up!
There was a problem hiding this comment.
Thank you so much for sharing the test files! It's super clear how everything fits together now.
Just a gentle question to explore: notice the top comment (DO NOT MODIFY) and how the original tests query #set rather than #start—what happens if we keep the test file untouched and let #set trigger the countdown? You're doing great—keep it up!
There was a problem hiding this comment.
Thank you so much for sharing the HTML! Grouping the buttons and setting type="button" is super thoughtful.
Just a gentle question: how does adding #start and changing the test selectors affect the existing test suite, and could #set handle the countdown directly? You're doing great—keep it up!
There was a problem hiding this comment.
Thank you so much for sharing the styles! Styling the buttons and centering the controls is super thoughtful.
Just a gentle question: how might bright background colors or green text on a green button affect contrast and readability for users? You're doing awesome—keep it up!
Learners, PR Template
Self checklist
Task code
CYF-1098
Changelist
I have built the alarm clock app