Skip to content

Conversation

@Iswanna
Copy link

@Iswanna Iswanna commented Oct 17, 2025

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

In this pull request, I completed the following:

  • Reviewed each file in the 1-key-errors directory, predicted the runtime errors, ran them with Node, and explained why each error occurred using the documentation.

  • Examined files in the 2-mandatory-debug directory, predicted why the programs were misbehaving, ran them to confirm, and corrected the code.

  • Implemented functions in the 3-mandatory-implement directory according to the provided requirements and tested them with multiple inputs to ensure correctness.

  • Analyzed larger programs in the 4-mandatory-interpret directory, researched unfamiliar syntax and functions, and used console.log to verify variable values and program flow.

Questions

Hi. Please could you review my PR? I’d really appreciate your feedback.

Iswanna added 20 commits October 4, 2025 01:43
…rtions to compare current output with target output
- Predict the behavior of the existing code and provide explanations.
- Include any error messages encountered during execution.
- Provide the corrected code to fix the errors.
- Predict what will happen when the program runs.
- Write the correct code to fix any errors.
@Iswanna Iswanna added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 2 Assigned during Sprint 2 of this module Module-Structuring-And-Testing-Data The name of the module. labels Oct 17, 2025
@Iswanna Iswanna changed the title West Midlands | 25 Sep ITP | Iswat Bello | Sprint 2 | Module Structuring and Testing Data Coursework Sprint 2 West Midlands | 25 Sep ITP | Iswat Bello | Sprint 2 | Coursework Sprint 2 Oct 22, 2025
@cjyuan cjyuan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 25, 2025
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.

So far so good.

There are a few more files in 3-mandatory-implement and 4-mandatory-interpret.

The files in the prep folder is not quite related to the Sprint-2 exercise. To keep the branch clean, can you delete the folder from this branch?

@cjyuan cjyuan 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 Oct 25, 2025
@Iswanna
Copy link
Author

Iswanna commented Oct 26, 2025

So far so good.

There are a few more files in 3-mandatory-implement and 4-mandatory-interpret.

The files in the prep folder is not quite related to the Sprint-2 exercise. To keep the branch clean, can you delete the folder from this branch?

Hi @cjyuan.

Thank you for the helpful feedback and for spotting the missing updates in the 3-mandatory-implement and 4-mandatory-interpret files. I really appreciate the observation. I hadn’t pushed those changes earlier, but I’ve now pushed them to the remote repository.

I’ve also removed the prep folder from this branch as suggested to keep it clean. Thanks again for the review!

@Iswanna Iswanna 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 Oct 26, 2025
Comment on lines +10 to +29
function toPounds(penceString) {
const penceStringWithoutTrailingP = penceString.substring(
0,
penceString.length - 1
);

const paddedPenceNumberString = penceStringWithoutTrailingP.padStart(3, "0");
const pounds = paddedPenceNumberString.substring(
0,
paddedPenceNumberString.length - 2
);

const pence = paddedPenceNumberString
.substring(paddedPenceNumberString.length - 2)
.padEnd(2, "0");

return ${pounds}.${pence}`;

// console.log(`£${pounds}.${pence}`);
}
Copy link
Contributor

@cjyuan cjyuan Oct 26, 2025

Choose a reason for hiding this comment

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

The code in the function is not properly indented.

This VSCode feature might interest you:
https://code.visualstudio.com/docs/languages/javascript#_formatting

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

Labels

Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants