Skip to content

London | 26 ITP MAY | Russom Gebremeskel | Sprint 2 | Coursework - #1502

Open
russom-g wants to merge 32 commits into
CodeYourFuture:mainfrom
russom-g:coursework/sprint-2
Open

russom-g wants to merge 32 commits into
CodeYourFuture:mainfrom
russom-g:coursework/sprint-2

Conversation

@russom-g

@russom-g russom-g commented Sep 11, 2026

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

Changelist

Using documentations errors explained fixed. Program explained step by step.

@netlify

netlify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

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

@github-actions

This comment has been minimized.

@russom-g russom-g added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 11, 2026
@webmonch
webmonch self-requested a review September 14, 2026 21:37
@webmonch webmonch 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 14, 2026

// Answers

// a) There are no function or function calls in this code.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

How are functions usually invoked in JS?


// a) There are 6 variable declarations.

// b) There are no function calls.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similar question to the one I left in previous file

// Try logging the value of num and running the program several times to build an idea of what the program is doing

// 1. num is a variable that stores the final result of the expression assigned to it.
// 2. The Math.random() method generates a random decimal number from 0 up but not excluding 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.

Could be worth having another look at Math.random docs here.

const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = filePath.slice(-3);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you think of a more robust way to find extention?

@@ -1,9 +1,16 @@
const cardNumber = 4533787178994213;
const last4Digits = cardNumber.slice(-4);
const last4Digits = Number(String(cardNumber).slice(-4));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you think of any edge cases that could surface here?


// c) The reminder (%) operator returns the reminder left over when one operand is divided by a second operand.

// d) movieLength(8784) - remainingSeconds(24) = 8760(seconds). 8760 / 60 gives us 146 minutes. totalMInutes = 146

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice! Great example of using real numbers to make explanation super clear.

@webmonch

Copy link
Copy Markdown

Good job! Very clear explanations/answers to most questions. Only few small bits to revisit here.

@webmonch webmonch 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 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants