Skip to content

Sheffield | 26-ITP-Jan | Mahammad Osman | Sprint 1 | Coursework#1087

Open
Darkidd77 wants to merge 13 commits intoCodeYourFuture:mainfrom
Darkidd77:coursework/sprint-1
Open

Sheffield | 26-ITP-Jan | Mahammad Osman | Sprint 1 | Coursework#1087
Darkidd77 wants to merge 13 commits intoCodeYourFuture:mainfrom
Darkidd77:coursework/sprint-1

Conversation

@Darkidd77
Copy link

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

  • Fixed and identified errors
  • Reviewed and documented variable declarations, function calls, and object

@Darkidd77 Darkidd77 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
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.

Explanation looks good. I just have a question to challenge your understanding.

Comment on lines +33 to +34
// 5. const pence = paddedPenceNumberString.substring(paddedPenceNumberString.length - 2).padEnd(2, "0"):
// extracts the pence part by taking the last two characters and pads it with trailing zeros if necessary, resulting in "99"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we expect this program to work as intended for any valid penceString if we deleted .padEnd(2, "0") from the code?
In other words, do we really need .padEnd(2, "0") in this script?

@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 Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants