Skip to content

Conversation

@Alaa-Tagi
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have completed the tasks required in this sprint.

Questions

No questions.

@Alaa-Tagi Alaa-Tagi added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Nov 26, 2025
@Poonam-raj Poonam-raj added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Nov 26, 2025
Comment on lines 9 to 13
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}`;
}

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?

Copy link
Author

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 .

@Poonam-raj Poonam-raj added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Nov 26, 2025
@Alaa-Tagi Alaa-Tagi removed the Reviewed Volunteer to add when completing a review with trainee action still to take. label Nov 26, 2025
Copy link

@A-O-Emmanuel A-O-Emmanuel left a 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

@A-O-Emmanuel A-O-Emmanuel added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 30, 2025
@Alaa-Tagi
Copy link
Author

@Poonam-raj I fixed the issue where the alarm would start even when the input was empty.
I added input validation so the alarm only starts when a valid number of seconds is entered.

@Alaa-Tagi Alaa-Tagi added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants