Skip to content

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

Open
LiyemaMfengwana wants to merge 15 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 15 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 on lines 1 to +8
let firstName = "Creola";
let middleName = "Katherine";
let lastName = "Johnson";

// Declare a variable called initials that stores the first character of each string.
// 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?

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?

carPrice.replaceAll(",", "")
Number(carPrice.replaceAll(",", ""))
Number(priceAfterOneYear.replaceAll(",", ""))*/

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 finding these, I think there are more than 3 function calls to find though


// e) What do you think the variable result represents? Can you think of a better name for this variable?

//A time format (hours:minutes:seconds) for the movie length, a better name would be movieDuration

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is it clear what the difference is between movieDuration and movieLength?

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.

movieLength is the original amount of time (in this code, stored as seconds) and movieDuration is usually means the movie’s total duration in a readable time format (hours, minutes, seconds)

@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
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.

2 participants