Skip to content

London | 26-Sep-ITP | Frumentius Tesfay | Sprint 3 | Coursework - #1589

Open
Frumentius-Rev wants to merge 16 commits into
CodeYourFuture:mainfrom
Frumentius-Rev:acoursework/sprint-3
Open

Frumentius-Rev wants to merge 16 commits into
CodeYourFuture:mainfrom
Frumentius-Rev:acoursework/sprint-3

Conversation

@Frumentius-Rev

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

Task code

CYF-1053

Changelist

I have demonstrated debugging and interpretation skills and completed the Sprint 3 requirements.

@netlify

netlify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 365fc3a
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6ab6faf13b22e3000854c664
😎 Deploy Preview https://deploy-preview-1589--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 86 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Frumentius-Rev Frumentius-Rev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 25, 2026
@Frumentius-Rev

Copy link
Copy Markdown
Author

Hey, I removed one of the code comments but left the others. I’ll make sure to remove all unnecessary comments next time to keep the code tidy and professional.

@madhuranakate madhuranakate added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 25, 2026
Comment thread Sprint-3/1-key-errors/0.js Outdated
// If I give the new variable a different name, I hope it should work :)

function capitalise(str) {
let newString = `${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.

good analysis but can be variable name be something better ? a name that suggests what it holds

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, you’re right! I didn’t focus on using a descriptive name in the first place. I think capitalisedString is clearer and tidier. Thank you for pointing that out!

Comment thread Sprint-3/1-key-errors/1.js Outdated
return percentage;
}

console.log(convertToPercentage("26"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Although the updated function is correct, could you check again what parameter says should be passed into the function ?

console.log(a * b);
return a * b;
}
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a possibility that the logs are being duplicated ?

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

function toUpper(input) {
return input.replaceAll(" ", "_").toUpperCase();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

apart from uppercase, is this function perhaps adding something that does not exist in the input ?

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.

Yeah, I noticed that it also replaces the spaces with underscores besides converting to uppercase.


// c) What is the return value of pad when it is called for the first time?
// =============> write your answer here
// 00

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

even though the answer is correct, could it perhaps be a different return type ?


// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
// =============> write your answer here
// 01

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

even though the answer is correct, could it perhaps be a different return type ?

@Frumentius-Rev Frumentius-Rev added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants