Skip to content

Sheffield | 26-ITP-Jan | Martha Ogunbiyi | Sprint 3| Alarm clock#1167

Open
marthak1 wants to merge 3 commits intoCodeYourFuture:mainfrom
marthak1:sprint-3/alarmclock
Open

Sheffield | 26-ITP-Jan | Martha Ogunbiyi | Sprint 3| Alarm clock#1167
marthak1 wants to merge 3 commits intoCodeYourFuture:mainfrom
marthak1:sprint-3/alarmclock

Conversation

@marthak1
Copy link
Copy Markdown

@marthak1 marthak1 commented Apr 3, 2026

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

Built alarm clock app as per requirements

@marthak1 marthak1 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 3, 2026
@Luro91 Luro91 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 4, 2026
Comment on lines +1 to +2
const title = document.querySelector('title')
title.textContent = "Alarm clock app";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did you undo the change where you changed the title in the HTML first?

let seconds = num % 60;
return minutes.toString().padStart(2, '0') + ":" + seconds.toString().padStart(2, '0');
}
function setAlarm() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens when a user clicks the set alarm button while the countdown is already running?

}
function setAlarm() {
const alarmSetInputEl = document.getElementById("alarmSet");
let timeEl = Number(alarmSetInputEl.value);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens if the user enters a negative number or a non number string?

@Luro91 Luro91 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 Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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