Skip to content

London | 26-ITP-May | Martin Mwaka | Sprint 2 | Coursework Exercises#1363

Open
Temceo wants to merge 11 commits into
CodeYourFuture:mainfrom
Temceo:coursework/sprint-2
Open

London | 26-ITP-May | Martin Mwaka | Sprint 2 | Coursework Exercises#1363
Temceo wants to merge 11 commits into
CodeYourFuture:mainfrom
Temceo:coursework/sprint-2

Conversation

@Temceo

@Temceo Temceo commented Jun 18, 2026

Copy link
Copy Markdown

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

JavaScript mandatory coursework exercises for sprint 2

@Temceo Temceo added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Jun 18, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work, I just have one question about one of the tasks

// return the BMI of someone based off their weight and height
} No newline at end of file
// return the BMI of someone based off their weight and height
const heightSquared = Number((height * height).toFixed(2));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do you need to do the fixed and number conversion on this line 19?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Converting to number has no effect as toFixed ensures text is returned. I have update this line as follows: return (weight / heightSquared).toFixed(1);

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 23, 2026
@Temceo Temceo 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 Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Structuring-And-Testing-Data The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants