Skip to content

London | 26-ITP-Jan | Divine Mankrado | Sprint 2 | Sprint-2#1169

Open
divinmank wants to merge 15 commits intoCodeYourFuture:mainfrom
divinmank:acoursework/sprint-2
Open

London | 26-ITP-Jan | Divine Mankrado | Sprint 2 | Sprint-2#1169
divinmank wants to merge 15 commits intoCodeYourFuture:mainfrom
divinmank:acoursework/sprint-2

Conversation

@divinmank
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

I edited errors as prompted and added comments explaining some of the code.

@divinmank divinmank added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@github-actions

This comment has been minimized.

@divinmank divinmank added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@divinmank divinmank added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
@divinmank divinmank added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 4, 2026
Comment on lines +14 to +17
// =============> I've given the variable a new name, newStr, to avoid redclaring the variable.
// =============> function capitalise(str) {
// let newStr = `${str[0].toUpperCase()}${str.slice(1)}`;
// return newStr;

Choose a reason for hiding this comment

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

This is a way to do it. Is there a better way to do it in one line without redeclaring a variable within the function?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. This is the other way to do it. Should I update my code with this?
function capitalise(str) {
return str[0].toUpperCase() + str.slice(1);
}

@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 20
function calculateBMI(weight, height) {
// return the BMI of someone based off their weight and height
return (weight/(height**2)).toFixed(1);
} 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 there a better way to write the code to make it more readable? Also, look into the bmi calculation to make sure the right calculation is done within your code.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the comment! I've updated the code

Comment on lines +18 to +20
function upperSnakeCase(str){
return str.toUpperCase().split(" ").join("_");
}

Choose a reason for hiding this comment

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

Good way to handle some edge cases from the passed 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.

Good job so far; you should look through the comments to improve. You also have a task not attended to for this sprint which is in folder 5. Ensure that is done along with 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

@divinmank 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?

@divinmank
Copy link
Author

Sorry for the late update - I have made the relevant adjustments. Sorry for any inconveniences caused.

@divinmank
Copy link
Author

Good job so far; you should look through the comments to improve. You also have a task not attended to for this sprint which is in folder 5. Ensure that is done along with your next PR.

I was under the impression that the 5th task "5-stretch-extend" is optional. Is it mandatory to complete this folder?

@divinmank divinmank added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 11, 2026
@Theoreoluwa
Copy link

Theoreoluwa commented Mar 11, 2026

Good job so far; you should look through the comments to improve. You also have a task not attended to for this sprint which is in folder 5. Ensure that is done along with your next PR.

I was under the impression that the 5th task "5-stretch-extend" is optional. Is it mandatory to complete this folder?

I would recommended you should as it helps you. It's quite straightforward for this task.

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.

Well done and keep going! You can take on the stretch task, as it helps you build an understanding of tests as you move on.

@Theoreoluwa Theoreoluwa added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 11, 2026
@github-actions
Copy link

The changed files in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the changed files tab at the top of the page, we are only expecting changes in this directory: ^Sprint-2/

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

1 similar comment
@github-actions
Copy link

The changed files in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the changed files tab at the top of the page, we are only expecting changes in this directory: ^Sprint-2/

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

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 all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants