Skip to content

London | 26-ITP-May | Ebrahim Moqbel | Sprint 2 | course work - #1582

Open
Ebrahim-Moqbel wants to merge 18 commits into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:acoursework/sprint-2
Open

London | 26-ITP-May | Ebrahim Moqbel | Sprint 2 | course work #1582
Ebrahim-Moqbel wants to merge 18 commits into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:acoursework/sprint-2

Conversation

@Ebrahim-Moqbel

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

reviewed the completed mandatory exercises and the key errors file further explaining and running the codes for revision purposes and submitting a new PR for the sprint

Questions

N/A

@Ebrahim-Moqbel Ebrahim-Moqbel 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 28, 2026
Comment thread Sprint-2/1-key-errors/0.js Outdated
// =============> write your explanation here
// =============> write your new code here
}
capitalise("ebrahim");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You call the function but never print it, so the file outputs nothing

Comment thread Sprint-2/1-key-errors/0.js Outdated
// =============> write your new code here
}
capitalise("ebrahim");
capitalise('salomi');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You call the function but never print it, so the file outputs nothing

Comment thread Sprint-2/1-key-errors/0.js Outdated
let str = `${str[0].toUpperCase()}${str.slice(1)}`;
return str;
}
return str[0].toUpperCase()+str.slice(1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It is correct, but the code itself needs formatting. Missing indent inside the function

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Still outstanding. Run npx prettier --write Sprint-2 from the repo root and it'll fix the formatting across all the files. Turning on format on save in VS Code will keep it that way.

Comment thread Sprint-2/1-key-errors/0.js Outdated
// =============> write your prediction here
/*
I predict the function will throw a SyntaxError as the variable str has already been declared in the function parameter
function capitalize will capitalise the first letter with index 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

a typo in capitalize, since the function has different name.

Comment thread Sprint-2/2-mandatory-debug/2.js Outdated
/* the reason why getLastDigit isn't working properly is that it doesn't accept any arrguments where there isn't any perameters in its difination.
where it uses the golabal varaible 'num' decalred outside the funtion and already set to 103

The correct code includes a parameter 'number' in the difination this allows the function to accept the number passed to it when called*/ No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

the parameter is num, not number

Comment thread Sprint-2/3-mandatory-implement/1-bmi.js Outdated
// return the BMI of someone based off their weight and height
} No newline at end of file
let result = Number(weight/(height*height));
return result.toFixed(1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would drop the Number on the devision and than return Number(..)

// You will need to come up with an appropriate name for the function
// Use the MDN string documentation to help you find a solution
// This might help https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
function toUpperSnakeFormat(string){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

rename to match the vocabulary brief in the link, i.e toUpperSnakeCase

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Coming back to this one. The function is still called toUpperSnakeFormat. Rename it to toUpperSnakeCase to match the wording in the exercise, or tell me why you prefer the current name.

@Ebrahim-Moqbel

Copy link
Copy Markdown
Author

I have committed the suggested changes and answered the questions if there is any further requirements please do let me know @selyafi

Thank you

@abdishakoor-dev abdishakoor-dev 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.

I have left some comments inline. Once those are resolved I'll mark this Complete.

Comment thread Sprint-2/1-key-errors/1.js Outdated
Comment thread Sprint-2/1-key-errors/2.js Outdated
Comment thread Sprint-2/4-mandatory-interpret/time-format.js Outdated
Comment thread Sprint-2/4-mandatory-interpret/time-format.js Outdated
@abdishakoor-dev abdishakoor-dev added the Reviewed Volunteer to add when completing a review with trainee action still to take. label Aug 20, 2026
@abdishakoor-dev abdishakoor-dev removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 20, 2026
@Ebrahim-Moqbel Ebrahim-Moqbel 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 Aug 21, 2026
@abdishakoor-dev

Copy link
Copy Markdown

Most of this is still outstanding. 1.js is the only file that has any real changes, the rest some re-formatting changes.

1-key-errors/2.js line 18: the ReferenceError sentence is still there. There's no ReferenceError here. Only SyntaxError
2. 4-mandatory-interpret/time-format.js line 30: answer b still names the variable instead of giving the value.
3. 4-mandatory-interpret/time-format.js line 36: answer d still says the string "1". Is it a string or number?
4. 3-mandatory-implement/2-cases.js line 17: still called toUpperSnakeFormat. Rename it to toUpperSnakeCase to match the wording in the exercise.
5. Seven files still fail Prettier. Run npx prettier --write Sprint-2 in a terminal from the repo root. Format on save only fixes files you open, which is why the three you edited are clean and the rest aren't.

@abdishakoor-dev abdishakoor-dev 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 Aug 21, 2026
@Ebrahim-Moqbel Ebrahim-Moqbel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 21, 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. 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.

3 participants