Skip to content

WM | May-2025 | Abdullah Saleh | Sprint-2 #554

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

3bdullah-saleh
Copy link

@3bdullah-saleh 3bdullah-saleh commented Jun 16, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@3bdullah-saleh 3bdullah-saleh added the Needs Review Participant to add when requesting review label Jun 16, 2025
@LonMcGregor LonMcGregor added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Jul 3, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good work on this sprint, and your answers are good and work fine. I left some small comments around style to see if you can think of any ways you could improve what you've written.

squaredHeight = height * height;
BodyMassIndex = (weight / squaredHeight).toFixed(1);

Choose a reason for hiding this comment

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

Remember to follow the normal guidelines for declaring variables - anything you would change when declaring BodyMassIndex?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your feedback, yes, I supposed to use const to declare the variables. I made the changes and committed it.

}
toPounds((penceString = "399p"));
toPounds((penceString = "102p"));
toPounds((penceString = "1025p"));

Choose a reason for hiding this comment

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

What effect does passing in (penceString = "399p") have here? Could you simplify these function calls?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your feedback.

You're right — the assignment inside the function call was unnecessary and could be confusing. I've now simplified the function calls by removing the assignment and just passing the string literals directly to toPounds().

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 3, 2025
@LonMcGregor
Copy link

Good fixes for your answers. You are now complete with sprint 2. Well done!

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and review comments have been addressed and removed Reviewed Volunteer to add when completing a review labels Jul 3, 2025
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 review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants