West Midlands | ITP September-2025 | Jonathan Boahene | Sprint 1 | Module Structuring and Testing Data#824
Closed
Abayie wants to merge 23 commits intoCodeYourFuture:mainfrom
Closed
West Midlands | ITP September-2025 | Jonathan Boahene | Sprint 1 | Module Structuring and Testing Data#824Abayie wants to merge 23 commits intoCodeYourFuture:mainfrom
Abayie wants to merge 23 commits intoCodeYourFuture:mainfrom
Conversation
jaymes15
reviewed
Nov 23, 2025
| // Line 1 is a variable declaration, creating the count variable with an initial value of 0 | ||
| // Describe what line 3 is doing, in particular focus on what = is doing | ||
|
|
||
| /*Line 3 is reassigning variable count with a new value, in this case we're saying add 1 to whatever we already have in count, |
jaymes15
reviewed
Nov 23, 2025
|
|
||
| //let initials = [firstName, middleName, lastName].map(name => name.slice(0,1)).join('') | ||
|
|
||
| let initials = [firstName, middleName, lastName] |
There was a problem hiding this comment.
This Solution is very good.
It correctly outputs "CKJ", without hard-coding any letters.
jaymes15
reviewed
Nov 23, 2025
| console.log(`The base part of ${filePath} is ${base}`); | ||
|
|
||
| // Create a variable to store the dir part of the filePath variable | ||
| const dir = filePath.slice(0, lastSlashIndex); // Extract the directory part (everything before the last slash) |
There was a problem hiding this comment.
Good — clear, descriptive variable, and the path includes both directory and extension so the task is realistic
This was referenced Nov 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
This pull request improves code readability and data formatting for Sprint 1 of Module-Structuring-and-Testing-Data.
I refactored programs to clearly convert and format values, such as transforming pence strings to pounds, formatting time values, and calculating percentage changes.
Each solution includes step-by-step breakdowns and explanations, ensuring the code is easy to follow and works correctly for different input cases.
Questions
No questions at this point