Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 2 | Coursework#1434

Open
edinakurdi wants to merge 13 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-2
Open

London | 26-ITP-May | Edina Kurdi | Sprint 2 | Coursework#1434
edinakurdi wants to merge 13 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-2

Conversation

@edinakurdi

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

Completed sprint 2 coursework on errors, and debugging

@github-actions

This comment has been minimized.

@edinakurdi edinakurdi changed the title London | 26-ITP-May | Edina Kurdi | Sprint 2 | Coursework | London | 26-ITP-May | Edina Kurdi | Sprint 2 | Coursework Jul 1, 2026
@edinakurdi edinakurdi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 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 start, can you see my comments for the first couple of tasks

// =============> write your explanation here
// =============> write your new code here
// Uncaught SyntaxError: Identifier 'str' has already been declared - meaning str should not have been used inside the function or the parameter of the function
function capitalise(str) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Have you tried testing / running this code? Does it work as expected?

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.

Oh, I accidentally returned the original str - I dont know how i didnt catch that. Fixed now.
FYI I also commented out the code with the error above.

Comment thread Sprint-2/1-key-errors/1.js Outdated

return percentage;
}
console.log(convertToPercentage());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you give this test a parameter, and run it, does it still work?

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.

I corrected the function by enabling it to take a parameter and calculate it in %

@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 Jul 6, 2026
@edinakurdi edinakurdi 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 Jul 7, 2026
@LonMcGregor

Copy link
Copy Markdown

Great, this task is done now. Always remember to fully test the code you've written before opening a PR.

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants