Skip to content

Conversation

i786m
Copy link

@i786m i786m commented Oct 2, 2025

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

I have completed the tasks set out in the files within the sprint-1 folder of this module. I have made a slight error in the path names I have used as commit messages for the tasks in the mandatory-interpret section

@i786m i786m added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. labels Oct 2, 2025
@i786m i786m linked an issue Oct 4, 2025 that may be closed by this pull request
@i786m i786m closed this Oct 4, 2025
@i786m i786m reopened this Oct 4, 2025
Copy link

github-actions bot commented Oct 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

1 similar comment
Copy link

github-actions bot commented Oct 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Oct 6, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start on this sprint's tasks, I have spotted a few areas where you could improve answers further

// 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 = `${

Choose a reason for hiding this comment

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

Do you need the string formatting ${} for this if all you are doing is concatenation?


const dir = ;
const ext = ;
const dir = filePath.slice(1, lastSlashIndex);

Choose a reason for hiding this comment

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

In filepaths, the first character / is important to include - can you change this to ensure it is captured?


// Then try updating the expression last4Digits is assigned to, in order to get the correct value
// by concatenating an empty string the code works as expected
const cardNumber = "" + 4533787178994213;

Choose a reason for hiding this comment

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

This works, but it's maybe not the best practice as changing types in this way can get a bit confusing. Is there any other way to convert an integer to a string that makes it more obvious what is happening?


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

// Yes the code will work for all values of movieLength, because the use of a variable makes it so that the code can be reused for any value of movieLength

Choose a reason for hiding this comment

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

Can you find any edge cases where the formatting looks a bit odd?

@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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Oct 6, 2025
@i786m
Copy link
Author

i786m commented Oct 6, 2025

I have made some changes following the comments on the PR review.

@i786m i786m added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Oct 6, 2025
@LonMcGregor
Copy link

Fantastic! You are finished with this sprint task now

@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. labels Oct 7, 2025
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. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

03 Complete Sprint 1 Coursework
2 participants