Skip to content

North West | 26-ITP-SEPT | Brian Yorachi | Sprint 2 | Complete Sprint 2 Coursework - #1560

Open
BrianY315 wants to merge 20 commits into
CodeYourFuture:mainfrom
BrianY315:coursework/sprint-2
Open

BrianY315 wants to merge 20 commits into
CodeYourFuture:mainfrom
BrianY315:coursework/sprint-2

Conversation

@BrianY315

Copy link
Copy Markdown

Self checklist

  • [x ] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • [x ] My changes meet the requirements of the task
  • [x ] I have tested my changes
  • [x ] My changes follow the style guide

Task code

CYF-1039.

Changelist

I have demonstrated and completed the Sprint 2 requirements

@github-actions

This comment has been minimized.

@BrianY315 BrianY315 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 21, 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 21, 2026
@BrianY315 BrianY315 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 21, 2026
@hackertainment hackertainment 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 24, 2026
@hackertainment

Copy link
Copy Markdown

The answers are generally correct. Keep it up.

@hackertainment hackertainment 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 24, 2026
@BrianY315

Copy link
Copy Markdown
Author

Thanks for the review.

@hackertainment

Copy link
Copy Markdown

I made comments directly on the related lines of code. Would you please fix the following issues?

Thank you.

Comment thread Sprint-2/1-key-exercises/3-paths.js Outdated
const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = filePath.slice(filePath.lastIndexOf(".") + 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 try. According to line 7, the . should also be part of file extension. Please fix it.

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.

This has been fixed.

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 breaking down the expression in line 4 and explain what it means.

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’ve added this breakdown to the comments in 4-random.js. The expression generates a random whole number from 1 to 100, inclusive. Thank you for the feedback.

// - line 5: priceAfterOneYear.replaceAll(",", "")
// - line 4: Number(...)
// - line 5: Number(...)
// - line 9: console.log(...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

just a minor typo in the answer: console.log(...) should be in line 10.

It displays a dialog box asking the user for input.

What is the return value of `prompt`?
The return value is the text entered by the user as a string. If the user cancels the prompt, it returns `null`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Excellent, precise and concise!

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@netlify

netlify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

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

@BrianY315 BrianY315 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 Sep 25, 2026
@hackertainment

hackertainment commented Sep 26, 2026 •

Copy link
Copy Markdown

Congratulation, you have completed this PR successfully.

@hackertainment hackertainment 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 Sep 26, 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