Skip to content

Sheffield | 26-ITP-Jan | Seti Mussa | Sprint 2 | Coursework#1217

Open
Seti-Jemal wants to merge 1 commit intoCodeYourFuture:mainfrom
Seti-Jemal:coursework/sprint-2
Open

Sheffield | 26-ITP-Jan | Seti Mussa | Sprint 2 | Coursework#1217
Seti-Jemal wants to merge 1 commit intoCodeYourFuture:mainfrom
Seti-Jemal:coursework/sprint-2

Conversation

@Seti-Jemal
Copy link

@Seti-Jemal Seti-Jemal commented Mar 7, 2026

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 sprint 2

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@Seti-Jemal Seti-Jemal added 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. 📅 Sprint 2 Assigned during Sprint 2 of this module labels Mar 7, 2026
Comment on lines +23 to +26
function multiply(a,b){
return a*b;
}
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)} `);
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation is off.

Have you installed the prettier VSCode extension and enabled "Format on save/paste" on VSCode,
as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
?

// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase

function convertToUpperSnakeCase(str) {
return str.toUpperCase().trim().split("").join("_");
Copy link
Contributor

Choose a reason for hiding this comment

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

This works.

Could also consider using the string's methods .replaceAll() or replace().

Comment on lines +8 to +11
function toPounds(kilograms) {
const pounds = kilograms * 2.20462;
return Number(pounds.toFixed(2));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

In this exercise, the objective is to turn the "pence string to British pounds" code from an exercise in Sprint-1 into a function.

Can you update this implementation accordingly?

@cjyuan cjyuan 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 Mar 11, 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