Skip to content

Conversation

@tam-fr
Copy link

@tam-fr tam-fr commented Oct 28, 2025

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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

// return the BMI of someone based off their weight and height
}
// return the BMI of someone based off their weight and height
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.

well done on that method

Copy link

@MustafaBora MustafaBora left a comment

Choose a reason for hiding this comment

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

Good in general, couple of changes needed.

let toPounds = function (str) {
const penceStringWithoutTrailingP = str.substring(
0,
penceString.length - 1 // take only 399

Choose a reason for hiding this comment

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

penceString variable is a variable defined outside, Maybe you meant str? Check this please

}
}
return `${findCharacter} appears ${num} time(s).`;
} else return 0;

Choose a reason for hiding this comment

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

a function shouldn't return different types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants