Skip to content

London | 26-ITP-May | Raihan Sharif | Sprint 3 | Alarm Clock#1223

Open
RaihanSharif wants to merge 3 commits into
CodeYourFuture:mainfrom
RaihanSharif:alarm-clock
Open

London | 26-ITP-May | Raihan Sharif | Sprint 3 | Alarm Clock#1223
RaihanSharif wants to merge 3 commits into
CodeYourFuture:mainfrom
RaihanSharif:alarm-clock

Conversation

@RaihanSharif
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

Changelist

Implemented the basic feature using setInterval. I tried to use setInterval to poll Date.now() every 500ms, as I thought that would be more robust, but the test suit meant I couldn't do that.

@RaihanSharif RaihanSharif added 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 May 8, 2026
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
Comment on lines +19 to +21
const minutes = Math.floor(secondsRemaining / 60);
const seconds = secondsRemaining % 60;
displayTime(minutes, seconds, clockDisplay);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These three lines of code are repeated on lines 33-35. Wouldn't it be better to compute the minutes and seconds in the displayTime() function?

Comment thread Sprint-3/alarmclock/alarmclock.js
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
@cjyuan cjyuan 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 May 10, 2026
@RaihanSharif RaihanSharif 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 May 10, 2026
Comment thread Sprint-3/alarmclock/alarmclock.js Outdated
@cjyuan cjyuan 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 May 10, 2026
Removed unused variable 'setBtn' from setAlarm function.
@RaihanSharif RaihanSharif 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 May 11, 2026
@cjyuan cjyuan added 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 May 11, 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. Module-Data-Groups The name of the module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants