-
-
Notifications
You must be signed in to change notification settings - Fork 274
West Midlands | ITP September-2025 | Jonathan Boahene | Sprint 1 | Module Structuring and Testing Data #824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| // 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very detailed! @Abayie
|
|
||
| //let initials = [firstName, middleName, lastName].map(name => name.slice(0,1)).join('') | ||
|
|
||
| let initials = [firstName, middleName, lastName] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Solution is very good.
It correctly outputs "CKJ", without hard-coding any letters.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good — clear, descriptive variable, and the path includes both directory and extension so the task is realistic
jaymes15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work!
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