Skip to content

Conversation

@Forogh-Aghaeiyarijani
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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@Forogh-Aghaeiyarijani Forogh-Aghaeiyarijani added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 8, 2025
@halilibrahimcelik
Copy link

The thing is when you committing your changes, do not commit all changes under one commit. Please try to divide each related changes under related commit

Copy link

@halilibrahimcelik halilibrahimcelik left a comment

Choose a reason for hiding this comment

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

Good job, only thing I would like to remind you that please divide your changes into specific commits next time. It will also allow reviewers to inspect your changes

// Currently trying to print the string "I was born in Bolton" but it isn't working...
// what's the error ?

console.log(`I was born in ${cityOfBirth}`);

Choose a reason for hiding this comment

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

Can you please explain to me what is the error ?

Choose a reason for hiding this comment

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

In the original code, console.log(...) is executed before cityOfBirth is initialized, causing a ReferenceError.

// The code will work for most values, but there are some edge cases where it could produce incorrect or unexpected results:
// Negative values: The code does not handle negative values for movieLength, resulting in negative times (e.g., -1:-30:-10), which doesn’t make sense in this context.
// Values less than 60: If movieLength is less than 60 seconds, the hours and minutes will be 0, which works fine. For example, movieLength = 45 will give 0:0:45.
// Large values: The code can handle very large values, but there’s no limit or check on the maximum duration.

Choose a reason for hiding this comment

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

Well explained

@halilibrahimcelik halilibrahimcelik added Reviewed Volunteer to add when completing a review with trainee action still to take. 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 Feb 17, 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. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants