Skip to content

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 3 | Alarmclock App - #1321

Open
TTiamiyu wants to merge 3 commits into
CodeYourFuture:mainfrom
TTiamiyu:data-groups-sprint3-alarmclock
Open

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 3 | Alarmclock App#1321
TTiamiyu wants to merge 3 commits into
CodeYourFuture:mainfrom
TTiamiyu:data-groups-sprint3-alarmclock

Conversation

@TTiamiyu

@TTiamiyu TTiamiyu commented Jul 28, 2026

Copy link
Copy Markdown

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

@TTiamiyu
TTiamiyu marked this pull request as ready for review July 29, 2026 21:40
@TTiamiyu TTiamiyu added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 29, 2026
@Luro91 Luro91 added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 30, 2026

@Luro91 Luro91 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title of the webpage should say Alarm clock app. It says Title here at the moment


// If input is invalid or empty, default to 0
if (isNaN(totalSeconds) || totalSeconds < 0) {
totalSeconds = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if the expected user behaviour for invalid inputs is to set the seconds to 0. What else could you do instead?

clearInterval(timerInterval);
}
// Function to render the formatted time (MM:SS) to the DOM
function updateDisplay() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job putting the code for formatting and setting the countdown into an own function. This makes it reusable and easier to change the formtting if needed

@Luro91 Luro91 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants