Skip to content

Comments

London | 26-ITP-Jan | Abdul Moiz | Sprint 3 | Alarm Clock#958

Open
A-Moiz wants to merge 2 commits intoCodeYourFuture:mainfrom
A-Moiz:alarm-clock
Open

London | 26-ITP-Jan | Abdul Moiz | Sprint 3 | Alarm Clock#958
A-Moiz wants to merge 2 commits intoCodeYourFuture:mainfrom
A-Moiz:alarm-clock

Conversation

@A-Moiz
Copy link

@A-Moiz A-Moiz commented Feb 13, 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

  • Changed HTML Title
  • Created multiple functions in alarmclock.js for alarm clock functionality

Questions

N/A

@A-Moiz A-Moiz added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 13, 2026

Choose a reason for hiding this comment

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

You could look into preventing negative input (-1 or lower) and update the Javascript file to prevent your alarm clock from taking negative input

Copy link
Author

Choose a reason for hiding this comment

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

I added min='1' in the HTML so it doesn't allow 0 or negatives. I don't think any changes in JavaScript would be required after this. If changes in JavaScript file are still needed after this please let me know why that would be the case. Thanks.

Choose a reason for hiding this comment

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

Thank you @A-Moiz. The min attribute in the HTML is a great start to ensuring input is better and clean. The change suggested would be a step to ensure form validation is maintained and good. You could look into form validation to ensure bad input isn't passed/taken but other than that, the code looks good for a start.

Copy link
Author

@A-Moiz A-Moiz Feb 23, 2026

Choose a reason for hiding this comment

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

Hi @codeschris, could you please clarify what else would be needed for it to be completed? With the addition of min='1' values that are less than or equal to 0 aren't allowed/passed.

Copy link

@codeschris codeschris Feb 24, 2026

Choose a reason for hiding this comment

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

The min attribute is the first (and primary best) step to ensuring that negative input isn't taken in. The addition to the Javascript file ensures that wrong input isn't passed and stopping the timer from working. Check the first approach here and see how you could validate the input in your application. The work is complete but this is more of a best practice/approach that you could use in later projects and assignments.

@codeschris codeschris 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 Feb 15, 2026
@A-Moiz A-Moiz added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 21, 2026
@codeschris codeschris added Reviewed Volunteer to add when completing a review with trainee action still to take. Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. 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