Skip to content

London | 26-ITP-Jan | Boualem Larbi Djebbour | sprint 1 | Coursework#1090

Open
djebsoft wants to merge 71 commits intoCodeYourFuture:mainfrom
djebsoft:coursework/sprint-1
Open

London | 26-ITP-Jan | Boualem Larbi Djebbour | sprint 1 | Coursework#1090
djebsoft wants to merge 71 commits intoCodeYourFuture:mainfrom
djebsoft:coursework/sprint-1

Conversation

@djebsoft
Copy link

@djebsoft djebsoft 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 completed the mandatory sections of sprint 1 for the second module

Questions

Updated comment to clarify the assignment operation.
Updated the initials variable to dynamically generate initials from first, middle, and last names.
Implemented logic to extract directory and extension from filePath.
Added comments to explain the purpose and behavior of the num variable and the random number generation process.
Changed 'const' to 'let' for age variable to allow reassignment.
Fix variable declaration order to avoid reference error.
Updated last4Digits assignment to convert cardNumber to a string before slicing.
Updated variable names to avoid starting with digits.
Fixed syntax error in priceAfterOneYear assignment and updated comments.
Added comments to explain the purpose of each step in the code.
@github-actions

This comment has been minimized.

@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
@djebsoft djebsoft changed the title London | 26-ITP-Jan Boualem Larbi Djebbour | sprint 1 | Coursework London | 26-ITP-Jan | Boualem Larbi Djebbour | sprint 1 | Coursework Feb 27, 2026
@github-actions

This comment has been minimized.

@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 27, 2026
Updated the capitalise function to fix variable redeclaration and corrected the return variable name.
Declare 'result' with 'let' to avoid redeclaration error.
…ge function

Removed duplicate declaration of decimalNumber and updated comments.
Corrected the square function to properly accept a parameter and return its square.
Refactored multiply function to include return statement and improved logging.
Fix the sum function to correctly return the sum of two numbers.
Corrected the getLastDigit function to accept a parameter and return the last digit of a number.
Added a function to convert a string to upper snake case.
Updated comments in time-format.js to clarify the behavior of the pad function.
Removed comments with answers to questions about the pad function.
@djebsoft
Copy link
Author

djebsoft commented Mar 9, 2026

thanks for the review
I did the following:
1-prettier already installed and set
I couldn't figure out what peace of code you pointed to, so I reviewed the whole codes of sprint 1.
2- trailing slash removed from the value assigned to dir
3- recomended approach taken
4- demonstrated what's included and what's excluded
5- parentheses omitted automatically when I formatted with prettier
6- avoided starting variable name with a $ and
sugested to begin the name with a lowercase letter.
7- suggested more descriptive name
8- reverted the changes made in the Sprint-2 folder

@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 9, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 9, 2026
@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 9, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 9, 2026
@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 9, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 9, 2026

  • Changes in in Sprint-2 reverted. Well done.

  • Code seems consistently formatted -- if you have successfully enabled "Format on save" and assign Prettier as the default formatter for JS code, then you won't need to worry about your code "not properly formatted". The inconsistency was small but prettier would have taken care of them for you.

  • Other changes look good.

  • You could practice responding inline comments though. Doing so could help the reviewer track what you have done.
    You can ask AI how to address inline comments in a PR and practice what you find in future PRs.

image

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 9, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants