Skip to content

Glasgow | 26-ITP-May | Christelle Boten | Sprint 2 | Coursework - #1583

Open
Christelle-b wants to merge 10 commits into
CodeYourFuture:mainfrom
Christelle-b:coursework/sprint-2
Open

Glasgow | 26-ITP-May | Christelle Boten | Sprint 2 | Coursework#1583
Christelle-b wants to merge 10 commits into
CodeYourFuture:mainfrom
Christelle-b:coursework/sprint-2

Conversation

@Christelle-b

@Christelle-b Christelle-b commented Jul 28, 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

My PR solves all the tasks assigned to sprint 2 of the structure and testing sprint

Questions

@github-actions

This comment has been minimized.

@Christelle-b Christelle-b added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions

This comment has been minimized.

5 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Christelle-b Christelle-b changed the title Glasgow | 26-ITP-May | Christelle Boten | Sprint 2 Glasgow | 26-ITP-May | Christelle Boten | Sprint 2 | Coursework Jul 28, 2026
@Christelle-b Christelle-b added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 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 on most of these, but some still incomplete

// =============> write your new code here
function capitalise(str) {
let strOne = `${str[0].toUpperCase()}${str.slice(1)}`;
return console.log(strOne);

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 we want to print out or return a value here?

// Finally, correct the code to fix the problem
// =============> write your new code here
function convertToPercentage(decimalNumber) {
const firstDecimal = 0.5;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this firstDecimal constant do anything in this function?

} No newline at end of file
const heightSquare = height * height;
const newBMI = weight / heightSquare;
const toOneDecimal = Math.round(newBMI * 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

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.

2 participants