Skip to content

London | 26-ITP-Jan | Gloria Mankrado | sprint 2 | Coursework#1154

Open
gloriamanks wants to merge 1 commit intoCodeYourFuture:mainfrom
gloriamanks:acoursework/sprint-2
Open

London | 26-ITP-Jan | Gloria Mankrado | sprint 2 | Coursework#1154
gloriamanks wants to merge 1 commit intoCodeYourFuture:mainfrom
gloriamanks:acoursework/sprint-2

Conversation

@gloriamanks
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 exercise for 1 key errors, 2 mandatory debug, 3 mandatory implement and 4 mandatory interpret

@gloriamanks gloriamanks added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@Theoreoluwa Theoreoluwa 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 Mar 7, 2026
Comment on lines 17 to +19
function calculateBMI(weight, height) {
const bmi = weight / (height * height);
return Math.round(bmi * 10) / 10;

Choose a reason for hiding this comment

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

Is there a better method to return the bmi value in one decimal place?

Comment on lines +17 to +21

function toUpperSnakeCase(str) {
return str.toUpperCase().replace(/ /g, '_');
// return the string in UPPER_SNAKE_CASE
} No newline at end of file

Choose a reason for hiding this comment

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

Is it best to pass in //g as an argument in your .replace method?

Comment on lines +7 to +11

function toPounds(kilograms) {
return kilograms * 2.20462;
// return the weight in pounds
} No newline at end of file

Choose a reason for hiding this comment

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

You should read the context of the task to understand what you are to do. The task is referring to the code from the previous sprint, which you are to work with to actualise the given task.

Comment on lines 36 to +38
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
// =============> write your answer here
// The return value of `pad(1)` is "01". No newline at end of file

Choose a reason for hiding this comment

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

You could further explain your reason for this answer by analysing the full output of the given code when the function is called with the passed in argument.

Copy link

@Theoreoluwa Theoreoluwa left a comment

Choose a reason for hiding this comment

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

Great job so far, Gloria; look through the attached comments for improvement. Also, note, you have one more unattended task for this sprint, which is in folder number 5. Kindly look into that to be added in your next pr.

@Theoreoluwa Theoreoluwa 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 Mar 7, 2026
@kfklein15
Copy link

@gloriamanks this PR has been reviewed 4 days ago and you still haven't replied. Until you do, this volunteer cannot work on another PR, so you are blocking them. Can you please reply today?

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.

3 participants