Skip to content

London | 26-ITP-May | Gideon Defar | Sprint 2 | Acoursework/sprint 2` - #1589

Open
gideondefar wants to merge 11 commits into
CodeYourFuture:mainfrom
gideondefar:acoursework/sprint-2`
Open

London | 26-ITP-May | Gideon Defar | Sprint 2 | Acoursework/sprint 2`#1589
gideondefar wants to merge 11 commits into
CodeYourFuture:mainfrom
gideondefar:acoursework/sprint-2`

Conversation

@gideondefar

@gideondefar gideondefar commented Jul 30, 2026

Copy link
Copy Markdown

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

Implemented and debugged the Sprint 2 mandatory JavaScript exercises.

The changes include:

Fixed variable declaration and scope errors.
Fixed incorrect function parameters.
Fixed functions that were not returning values correctly.
Fixed the getLastDigit function to use its parameter correctly.
Implemented the BMI calculation.
Implemented UPPER_SNAKE_CASE conversion.
Refactored the pence-to-pounds program.
Completed the formatTimeDisplay function tracing questions.
Tested the programs using Node.js.

@gideondefar gideondefar added 📅 Sprint 2 Assigned during Sprint 2 of this module 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 Jul 30, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 1, 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, just one task to improve a bit more

// return the BMI of someone based off their weight and height
} No newline at end of file
const bmi = weight / (height * height);
return Math.round(bmi * 10) / 10;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This isn't wrong, but can you think of a cleaner solution that multiplying then dividing by 10?

@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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 1, 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. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants