-
Notifications
You must be signed in to change notification settings - Fork 10
Brussels | itp-2025-1 | Tam Huynh | Module-Structuring-and-Testing-Data | Coursework sprint 1 #30
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
| // 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); |
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.
well done on that method
MustafaBora
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.
Good in general, couple of changes needed.
| let toPounds = function (str) { | ||
| const penceStringWithoutTrailingP = str.substring( | ||
| 0, | ||
| penceString.length - 1 // take only 399 |
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.
penceString variable is a variable defined outside, Maybe you meant str? Check this please
| } | ||
| } | ||
| return `${findCharacter} appears ${num} time(s).`; | ||
| } else return 0; |
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.
a function shouldn't return different types
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.