Skip to content

Brussels | ITP-2026-1 | Benjamin | Sprint 3 | Alarmclock | Week 9#123

Open
nuttyproducer wants to merge 3 commits intoHackYourFutureBelgium:mainfrom
nuttyproducer:feature/alarmclock
Open

Brussels | ITP-2026-1 | Benjamin | Sprint 3 | Alarmclock | Week 9#123
nuttyproducer wants to merge 3 commits intoHackYourFutureBelgium:mainfrom
nuttyproducer:feature/alarmclock

Conversation

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

This PR implements the Sprint-3/alarmclock exercise.

  • added countdown timer logic in alarmclock.js
  • display the remaining time in mm:ss format
  • update the timer text immediately after setting the alarm
  • change the background color when the countdown reaches zero
  • play a looping alarm sound when the timer finishes
  • stop and reset the alarm when a new timer is set
  • expose setAlarm, playAlarm, and pauseAlarm on window so Jest can access them in tests

- Attach setAlarm, playAlarm, and pauseAlarm to window so tests can see them
- Ensures all acceptance criteria can be verified by automated tests

Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        4.696 s, estimated 13 s
Ran all test suites matching alarmclock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant