Skip to content

Conversation

shreefAhmedM
Copy link

@shreefAhmedM shreefAhmedM commented Sep 15, 2025

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

Her is JavaScript challenges tasks covering exercises, error fixing, code interpretation, and a stretch exploration activity.

Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

4 similar comments
Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 15, 2025
Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

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.

Why not also practice committing files one by one? Making small commits has the following advantages:

  • Clarity: Each commit tells a clear story (one feature, one fix, one change).
  • Debugging: Easy to find and undo the commit that caused a bug.
  • Collaboration: Teammates can review and understand changes faster.
  • History: Project log becomes a readable timeline, not a messy dump.
  • Safety: Progress is saved in safe, logical steps—less risk of losing work.

If you would like to practice committing files one by one in VSCode, you can select which file to stage and then commit only the staged file.
See: this video (at around the 12:50 mark, it shows how to stage a single file).

If you prefer using the git command (which most professionals do), the W3School Git Tutorial
is a good place to start.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why renamed this file?

Copy link
Author

Choose a reason for hiding this comment

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

I renamed by mistake, i have updated to 1-bmi.js

Comment on lines 21 to 29
// =============> write your answer here. one time

// Call formatTimeDisplay with an input of 61, now answer the following:

// b) What is the value assigned to num when pad is called for the first time?
// =============> write your answer here
// =============> write your answer here .is 60

// c) What is the return value of pad is called for the first time?
// =============> write your answer here
// =============> write your answer here is 0
Copy link
Contributor

Choose a reason for hiding this comment

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

These answers are not quite correct, and you missed questions (d) and (e).

In addition, if a value is a string, it is a common practice to enclose the value with a pair of single/double quote characters to emphasize that it is a string.

Copy link
Author

Choose a reason for hiding this comment

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

I have updated

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you forget to commit your change? I don't notice any new change in this file.

}
return `${time} am`;

const formattedHour = HoursModefied < 10 ? "0" + HoursModefied : HoursModefied.toString();
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also use .padStart().

Comment on lines +17 to +20
function toUpperSnakeCase(str){
let SnakeCaseStr = str.replace(/ /g, "_")
return SnakeCaseStr.toUpperCase()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Indentation is a bit off.

  • It is a common practice to begin variable names with a lowercase letter. Names that start with an uppercase letter are typically reserved for user-defined data types or class names.

@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 Sep 16, 2025
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 24, 2025
@shreefAhmedM shreefAhmedM requested a review from cjyuan September 24, 2025 10:21
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.

It seems the file Sprint-2/4-mandatory-interpret/time-format.js has not been updated.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 24, 2025
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 24, 2025
@shreefAhmedM
Copy link
Author

It seems the file Sprint-2/4-mandatory-interpret/time-format.js has not been updated.

Because my changes were in lines that have common, Sorry, can you look again, i committed the changes?

@shreefAhmedM shreefAhmedM requested a review from cjyuan September 24, 2025 12:51
@cjyuan
Copy link
Contributor

cjyuan commented Sep 25, 2025

Everything looks good now. Good job.

@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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Sep 25, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants