Skip to content

Cape Town | 26-ITP-Sep | Raees Stevens | Sprint 2 | Coursework/sprint 2 - #1640

Open
RaeesStevens wants to merge 40 commits into
CodeYourFuture:mainfrom
RaeesStevens:coursework/sprint-2
Open

RaeesStevens wants to merge 40 commits into
CodeYourFuture:mainfrom
RaeesStevens:coursework/sprint-2

Conversation

@RaeesStevens

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

Completed Sprint 2 coursework

@netlify

netlify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 158e7ca
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6ac405dbbb615e0008170faf
😎 Deploy Preview https://deploy-preview-1640--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: 85 (🔴 down 15 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.

@RaeesStevens RaeesStevens added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 3, 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 Oct 3, 2026
@cjyuan cjyuan added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Oct 5, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Previously, the validation bot removed the "Needs review" label from this PR because it detected that the PR branch did not follow the CYF convention. Once the PR branch was fixed, the "Needs review" label should have been added again.

Please note that in ITP, trainees need to ensure their PR has the "Needs review" label whenever they expect the PR to be reviewed.

Comment thread Sprint-2/1-key-exercises/1-count.js Outdated
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
// Describe what line 3 is doing, in particular focus on what = is doing

// = in line 3 is assigning the rule that counting must start at 0. No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Line 3 does not enforce any "rule that counting must start at 0".
Could you rephrase the description?

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

Comment thread Sprint-2/1-key-exercises/4-random.js Outdated
console.log(num);

// num represents any randomly generated number between 1 and 100.
// Math.random pulls a random decimal, Math.floor rounds down to nearest whole number, (maximum - minimum + 1) sets the range, adding the minimum of 1 at the end allows for the possibility of a random number being 100 instead of 99. No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the range of the random numbers returned by Math.random()?

@RaeesStevens RaeesStevens Oct 5, 2026 •

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.

The range is 1 - 100

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Math.random() cannot return 100.

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.

Apologies, was multi-tasking when I replied. Math.random() range will be 0 - 99. The range of num is 100.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think Math.random() can return 50 or 99 either.

Comment thread Sprint-2/2-mandatory-errors/3.js Outdated
Comment thread Sprint-2/3-mandatory-interpret/1-percentage-change.js
@cjyuan cjyuan 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 Oct 5, 2026
@RaeesStevens RaeesStevens added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 5, 2026
@RaeesStevens RaeesStevens added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 5, 2026
@cjyuan

cjyuan commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Changes to the code look good.

The answer to the question in this comment is still not correct.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 5, 2026
@RaeesStevens RaeesStevens added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 5, 2026
@cjyuan cjyuan 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 Oct 5, 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