Skip to content

Conversation

@Grajales-K
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

This project alarm clock project teaches essential JavaScript skills like DOM manipulation, input validation, and countdown timers. It also covers integrating sound features and controlling a timer. Testing the app with Jest ensures reliable functionality throughout the development process.

Questions

Ask any questions you have for your reviewer.

@Grajales-K Grajales-K added 🏕 Priority Mandatory This work is expected 🔑 Priority Key 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jan 18, 2025
@Grajales-K Grajales-K changed the title Alarm clock app Karla Grajales | Module-Data-Groups | sprint-3 Alarm clock app Jan 18, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Code works great. One of the nicest implementations I came across so far.

I only have few minor suggestions.

I think you missed a requirement in readme.md about changing something index.html.

@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 Jan 18, 2025
@Grajales-K Grajales-K requested a review from cjyuan January 18, 2025 18:38
@Grajales-K Grajales-K added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 18, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

I only have some minor suggestions.
Please feel free to mark this as completed anytime.

Comment on lines +47 to +52
document.getElementById("timeRemaining").textContent = formatTime(0); // Ensure "00:00" is displayed
playAlarm(); // Play the alarm sound
} else {
// Update the time display on the page with the updated time
document.getElementById("timeRemaining").textContent =
formatTime(timeRemaining);
Copy link
Contributor

@cjyuan cjyuan Jan 18, 2025

Choose a reason for hiding this comment

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

  1. Line 47 and line 51-52 are doing exactly the same thing. So they could possibly be factored out from the if-else block.
  2. For performance reason, we could store the selected element in a variable instead of repeatedly retrieving for the element from document.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 18, 2025
@Grajales-K Grajales-K added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Jan 18, 2025
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. 🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants