Skip to content

West Midlands | 26-Jan-ITP | Fida H Ali Zada | Sprint 2 | coursework/sprint-2#946

Open
alizada-dev wants to merge 5 commits intoCodeYourFuture:mainfrom
alizada-dev:coursework/sprint-2
Open

West Midlands | 26-Jan-ITP | Fida H Ali Zada | Sprint 2 | coursework/sprint-2#946
alizada-dev wants to merge 5 commits intoCodeYourFuture:mainfrom
alizada-dev:coursework/sprint-2

Conversation

@alizada-dev
Copy link

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

Completed the Sprint-2 coursework exercises of the Structuring and Testing Data module.

@alizada-dev alizada-dev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@magarpratik magarpratik 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 Feb 15, 2026
function calculateBMI(weight, height) {
// return the BMI of someone based off their weight and height
} No newline at end of file
let bmi = weight / (height * height);

Choose a reason for hiding this comment

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

I noticed you've used let here and in most other places. Could we use another keyword which might be a better fit?

// Use the MDN string documentation to help you find a solution
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase

function toUpperSnake(str) {

Choose a reason for hiding this comment

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

I like the name because it's descriptive. 👌

Do you think it could be improved if we make it consistent with the existing toUpperCase?

(Btw, just asking out of curiosity. There is no single right answer.)

function toPounds(penceString) {
let value = Number(penceString.slice(0, -1)) / 100;
return `£${value.toFixed(2)}`
}

Choose a reason for hiding this comment

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

Nice! The code is very readable. 👍

currentOutput === targetOutput,
`current output: ${currentOutput}, target output: ${targetOutput}`
);

Choose a reason for hiding this comment

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

I think this test is failing. Could you double check?

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

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants