Skip to content

Manchester | 26-ITP-Sep | Mathew Shaibu | Sprint 2 | Course-work-2 - #1546

Open
MattCarolus10 wants to merge 69 commits into
CodeYourFuture:mainfrom
MattCarolus10:coursework/sprint-2
Open

MattCarolus10 wants to merge 69 commits into
CodeYourFuture:mainfrom
MattCarolus10:coursework/sprint-2

Conversation

@MattCarolus10

@MattCarolus10 MattCarolus10 commented Sep 19, 2026 •

Copy link
Copy Markdown

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-1039

Changelist

  • I have completed the "1-key-exercises" and corrected the syntax errors.
  • I checked for errors in the "2-Mandatory-errors" task and completed it.
  • I interpreted every lines of code in the "3-Mandatory-interpret" task and completed it.
  • I used the DevOps tool to check and research some JavaScript functions on chrome

Questions

Most functions in this project are new to me, even though I have been able to understand their functions individually, I am not really confident to code with them. I will keep practicing and any advise would really be appreciated.

@netlify

netlify Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

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

@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 25, 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 25, 2026
@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 25, 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 25, 2026
@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 25, 2026
Comment thread Sprint-2/1-key-exercises/4-random.js Outdated
Comment on lines +8 to +12
// "num" variable carries the result/value of the expressions evaluated.
// (maximum - minimum) workout the size of the range: 100 - 1 + 1 = 100
// Math.floor() takes out all decimal and make them a whole number from 0 to 99.
// Math.random() gives a decimal from 0 up to just under 1 (0.9999999).
// + minimum add 1 to the expression at the end because it is decleared a variable. No newline at end of file

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

The revised explanation looks much better now. Just a few minor issues to fix further:

  • Math.random() inside the (... * ...) would be evaluated before Math.floor() outside of it. So it would be better to swap lines 10 and 11 in your explanation.
  • + minimum at the end is not because of "it is declared a variable". This final part has its own purpose in this program. Can you think of the purpose of adding minimum at the end?

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.

Thank you so much, I have fixed all errors now.

@hackertainment

hackertainment commented Sep 26, 2026 •

Copy link
Copy Markdown

Thanks for your updated code and so far looked good to me. You are almost there and now just remaining the following issues. Would you please fix them as well?

// The "substring(paddedPenceNumberString.length - 2)" function deducts 3 leaving the last two numbers 99
// PadEnd(2, "0") ensure the value remains 2 and 0 to be added to value less than 2.

@MattCarolus10

MattCarolus10 commented Sep 26, 2026 via email

Copy link
Copy Markdown
Author

@hackertainment hackertainment removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 26, 2026
@MattCarolus10 MattCarolus10 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 27, 2026
@hackertainment

Copy link
Copy Markdown

How about Sprint-2/3-mandatory-interpret/2-time-format.js ? Do you have any idea? This should be the final item to fix in this coursework.

@MattCarolus10

Copy link
Copy Markdown
Author

How about Sprint-2/3-mandatory-interpret/2-time-format.js ? Do you have any idea? This should be the final item to fix in this coursework.

Test confirmed

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. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants