Skip to content

Conversation

@Fithi-Teklom
Copy link

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

@Fithi-Teklom Fithi-Teklom added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 10, 2025
@WeiTsungCheng WeiTsungCheng removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 12, 2025
@WeiTsungCheng WeiTsungCheng added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Nov 12, 2025
Copy link

@WeiTsungCheng WeiTsungCheng left a comment

Choose a reason for hiding this comment

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

It's mostly correct, but some errors could be reconsidered.

Choose a reason for hiding this comment

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

Great for fulfilling the requirement, but if the file path doesn't end with .txt but instead is /Users/mitch/cyf/Module-JS1/week-1/interpret/file, will const ext return a blank value?

Copy link
Author

Choose a reason for hiding this comment

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

No const ext won't return a blank value. It will incorrectly return the entire filename.

Choose a reason for hiding this comment

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

Yes, so it can be changed to return a blank value. This is because no filename extension was provided.

Choose a reason for hiding this comment

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

Are the two times reversed?

Copy link
Author

Choose a reason for hiding this comment

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

ow my bad yes they are.

Choose a reason for hiding this comment

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

Remove .padEnd(2, "0")
Will it affect the code?

Copy link
Author

Choose a reason for hiding this comment

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

Removing .padEnd(2, "0") won't break the logic may change the output formatting in certain cases.

Copy link
Author

Choose a reason for hiding this comment

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

  • but may change the output formatting in certain cases.

Copy link
Author

Choose a reason for hiding this comment

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

And the important thing is that variables don't start with number.

Choose a reason for hiding this comment

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

  • but may change the output formatting in certain cases.

Could you give an example that might have an impact?

Copy link
Author

Choose a reason for hiding this comment

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

Ahh, removing .padEnd(2, "0") will not change the output for valid inputs, because paddedPenceNumberString is already guaranteed to be at least 3 characters long from .padStart(3, "0").

Choose a reason for hiding this comment

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

Only Test One passed the test, indicating that the function formatAs12HourClock(time) needs to be changed.

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 adjusted it.

Choose a reason for hiding this comment

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

Sorry, I didn't notice your correct version was in the commented-out area. Your new version does indeed pass the test.

@WeiTsungCheng WeiTsungCheng added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Nov 12, 2025
@Fithi-Teklom Fithi-Teklom added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 16, 2025
@Fithi-Teklom Fithi-Teklom changed the title Manchester| 25-ITP-Sep | FIthi Teklom| Sprint 2 | Coursework Manchester| 25-ITP-Sep | Fithi Teklom| Sprint 2 | Coursework Nov 17, 2025
@WeiTsungCheng WeiTsungCheng 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. labels Nov 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants