Skip to content

Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint 3 | coursework - #1610

Open
salahalsabhi wants to merge 11 commits into
CodeYourFuture:mainfrom
salahalsabhi:coursework/sprint-3
Open

salahalsabhi wants to merge 11 commits into
CodeYourFuture:mainfrom
salahalsabhi:coursework/sprint-3

Conversation

@salahalsabhi

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

@netlify

netlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 16710fe
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6abbd88990186a000720cc3d
😎 Deploy Preview https://deploy-preview-1610--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.

@github-actions

This comment has been minimized.

@salahalsabhi salahalsabhi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 27, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 27, 2026
@salahalsabhi salahalsabhi changed the title Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint3 | coursework Manchester | 26-ITP-Sep | Salah Alsabhi | Sprint 3 | coursework Sep 27, 2026
@salahalsabhi salahalsabhi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 27, 2026
@hey-hammad hey-hammad 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 29, 2026

// =============> write your explanation here
// Explanation: A bare return; returns undefined. The expression must be on
// the same return statement: return a + b;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens if the expression is above the return statement in a variable? Will it still return or it needs to in the same expression?

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.

Yes you can store the result in a variable and then return that variable. What failed is a bare return; with no value; any code after that is unreachable.


function toPounds(penceAmount) {

const penceStringWithoutTrailingP = String(penceAmount);

@hey-hammad hey-hammad Sep 29, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please review the original code from Spring-2.

The input to the function should be a string.

https://github.com/CodeYourFuture/Module-JavaScript-Fundamentals/blob/main/Sprint-2/3-mandatory-interpret/3-to-pounds.js

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.

Updated — toPounds now accepts a string like "399p", matching Sprint-2.

@hey-hammad hey-hammad added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Sep 29, 2026
@salahalsabhi salahalsabhi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 29, 2026
@hey-hammad hey-hammad 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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Sep 30, 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