Skip to content

Conversation

@enjoy15
Copy link

@enjoy15 enjoy15 commented Nov 22, 2025

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

-Completed alram clock app

@enjoy15 enjoy15 added 📅 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 Nov 22, 2025
@jaymes15 jaymes15 self-requested a review November 22, 2025 11:47
@jaymes15 jaymes15 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 Nov 22, 2025
let intervalId = null;

function format(seconds) {
const m = String(Math.floor(seconds / 60)).padStart(2, "0");

Choose a reason for hiding this comment

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

@enjoy15 We can make this variable name more descriptive

Copy link
Author

@enjoy15 enjoy15 Nov 22, 2025

Choose a reason for hiding this comment

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

variable name changed to minute


function format(seconds) {
const m = String(Math.floor(seconds / 60)).padStart(2, "0");
const s = String(seconds % 60).padStart(2, "0");

Choose a reason for hiding this comment

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

@enjoy15 We can make this variable name more descriptive

Copy link
Author

Choose a reason for hiding this comment

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

variable name changed to second

heading.textContent = `Time Remaining: ${format(remaining)}`;
}

function tick() {

Choose a reason for hiding this comment

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

Good job! @enjoy15


function setAlarm() {
const value = parseInt(input.value, 10);
if (!Number.isFinite(value) || value <= 0) return;

Choose a reason for hiding this comment

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

Nice validation! @enjoy15
However, it would help readability to add a short comment explaining what this guard clause does.

Copy link
Author

Choose a reason for hiding this comment

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

comment added

@jaymes15 jaymes15 added Reviewed Volunteer to add when completing a review with trainee action still to take. 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. Reviewed Volunteer to add when completing a review with trainee action still to take. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 22, 2025
@enjoy15 enjoy15 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 22, 2025
@jaymes15 jaymes15 self-requested a review November 23, 2025 05:29
@jaymes15 jaymes15 self-requested a review November 23, 2025 05:29
@jaymes15 jaymes15 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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 23, 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. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants