Skip to content

Birmingham | 26-ITP-JAN | Merve Reis | Sprint 1 | Module Structuring and Testing Data#1091

Open
mervereis wants to merge 5 commits intoCodeYourFuture:mainfrom
mervereis:coursework/sprint-1
Open

Birmingham | 26-ITP-JAN | Merve Reis | Sprint 1 | Module Structuring and Testing Data#1091
mervereis wants to merge 5 commits intoCodeYourFuture:mainfrom
mervereis:coursework/sprint-1

Conversation

@mervereis
Copy link

@mervereis mervereis commented Feb 27, 2026

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

I answered the questions, done the changes.

@mervereis mervereis added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels 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.

I noticed some inconsistency in the formatting of the code.

Consider install prettier VSCode extension and enable formatting on save/paste on VSCode as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md

@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 Mar 5, 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.

Thanks for responding all comments in a clear manner.

Changes look good.


//Breakdown
// Math.random() generates a random decimal number between 0 (inclusive) and 1 (exclusive).
// Math.random() generates a random decimal number in the interval (0, 1).
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be [0, 1).

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I missed that, I fixed it. @cjyuan

Comment on lines +37 to +38
// 10.const pence = paddedPenceNumberString .substring(paddedPenceNumberString.length - 2);
// Gets the amount of pence by making a substring that starts at the paddedPenceNumberString length -2 to get the last 2 characters
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional challenge:
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?

Copy link
Author

Choose a reason for hiding this comment

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

I'll test it in this way, thanks for this challenge. @cjyuan

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 5, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 5, 2026

You forgot to add "Needs Review" label.

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. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants