Skip to content

Cape Town | 26-ITP-SEP | Liyema Mfengwana | Sprint 2 | Course-work-2 - #1535

Open
LiyemaMfengwana wants to merge 1 commit into
CodeYourFuture:mainfrom
LiyemaMfengwana:sprint2
Open

LiyemaMfengwana wants to merge 1 commit into
CodeYourFuture:mainfrom
LiyemaMfengwana:sprint2

Conversation

@LiyemaMfengwana

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

complete course work

@netlify

netlify Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

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

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 17, 2026

@LonMcGregor LonMcGregor left a comment

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 work here, it's almost complete. There's one file you could clean up a bit and a stretch that looks unfinished

lastDotIndex;

console.log(`The dir part of ${filePath} is ${dir}`);
console.log(`The ext part of ${filePath} is ${ext}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks like you have repeated some of the code here. Was that intentional? Can you edit this so the code can run?

// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer

//No, it will not work perfectly for all values.
//It does not add leading zeros (so you get 2:5:7 instead of 02:05:07)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done on finding this edge case

In the Chrome console,
invoke the function `alert` with an input string of `"Hello world!"`;

What effect does calling the `alert` function have?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You made changes in this file - did you want to complete this stretch task?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 22, 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