Skip to content

Cape Town | 26-ITP-May | Liyema Mfengwana | Sprint 1 | Coursework Exercises#1340

Open
LiyemaMfengwana wants to merge 17 commits into
CodeYourFuture:mainfrom
LiyemaMfengwana:course-work/sprint-1
Open

Cape Town | 26-ITP-May | Liyema Mfengwana | Sprint 1 | Coursework Exercises#1340
LiyemaMfengwana wants to merge 17 commits into
CodeYourFuture:mainfrom
LiyemaMfengwana:course-work/sprint-1

Conversation

@LiyemaMfengwana

@LiyemaMfengwana LiyemaMfengwana commented Jun 15, 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

Changelist

Completed solutions to sprint 1 coursework.

@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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 Jun 15, 2026
@LiyemaMfengwana LiyemaMfengwana changed the title CAPE TOWN | ITP-MAY-2026 | LIYEMA MFENGWANA | SPRINT 1 | COURSE-EXERCISES CAPE TOWN| ITP-MAY-2026| LIYEMA MFENGWANA| SPRINT 1| COURSEWORK Jun 15, 2026
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana changed the title CAPE TOWN| ITP-MAY-2026| LIYEMA MFENGWANA| SPRINT 1| COURSEWORK CAPE TOWN| ITP-MAY-2026| LIYEMA MFENGWANA| "SPRINT 1"| COURSEWORK Jun 15, 2026
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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 Jun 15, 2026
@LiyemaMfengwana LiyemaMfengwana changed the title CAPE TOWN| ITP-MAY-2026| LIYEMA MFENGWANA| "SPRINT 1"| COURSEWORK CAPE TOWN| 26-ITP-MAY| LIYEMA MFENGWANA| "SPRINT 1"| COURSEWORK Jun 15, 2026
@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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 Jun 15, 2026
@LiyemaMfengwana LiyemaMfengwana changed the title CAPE TOWN| 26-ITP-MAY| LIYEMA MFENGWANA| "SPRINT 1"| COURSEWORK CAPE TOWN| 26-ITP-MAY| LIYEMA MFENGWANA| SPRINT 1| COURSEWORK Jun 15, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana changed the title CAPE TOWN| 26-ITP-MAY| LIYEMA MFENGWANA| SPRINT 1| COURSEWORK CapeTown | 26-ITP-May | Liyema Mfengwana | Sprint 1 | Coursework Exercises Jun 15, 2026
@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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 Jun 15, 2026
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana changed the title CapeTown | 26-ITP-May | Liyema Mfengwana | Sprint 1 | Coursework Exercises Cape Town | 26-ITP-May | Liyema Mfengwana | Sprint 1 | Coursework Exercises Jun 15, 2026
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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 Jun 15, 2026
@github-actions

This comment has been minimized.

@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 15, 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, some changes needed, see my comments.

Comment thread Sprint-1/1-key-exercises/2-initials.js Outdated
Comment on lines +1 to +8
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.

let initials = ``;
let initials = `firstName[0]+middleName[0]+lastName[0]`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

try running this, maybe with a console.log - what do you get as output?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you actually run this code yourself? When I run it I do not get the correct output. What output do you get?

const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = lastDotIndex === -1 ? "" : filePath.slice(lastDotIndex);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Try running this code, what output do you get?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When I run this code I get an error. What output do you get?

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 fixed it now, when i run i get pdf

Comment thread Sprint-1/3-mandatory-interpret/1-percentage-change.js
Comment thread Sprint-1/3-mandatory-interpret/2-time-format.js
@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 Jun 19, 2026
@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 19, 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.

Hi, thanks for updating. There are still 2 of my original comments you need to have another look at.

Comment thread Sprint-1/1-key-exercises/2-initials.js Outdated
Comment on lines +1 to +8
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.

let initials = ``;
let initials = `firstName[0]+middleName[0]+lastName[0]`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you actually run this code yourself? When I run it I do not get the correct output. What output do you get?

const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = lastDotIndex === -1 ? "" : filePath.slice(lastDotIndex);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When I run this code I get an error. What output do you get?

@LonMcGregor LonMcGregor removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 22, 2026
@LiyemaMfengwana LiyemaMfengwana added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 22, 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, it was just a couple of bits missing. The tasks are complete now. Well done

@LonMcGregor LonMcGregor 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 Jun 23, 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