Skip to content

London| 26-ITP-May | Martin Mwaka | Sprint 3 | Stretch#1464

Open
Temceo wants to merge 7 commits into
CodeYourFuture:mainfrom
Temceo:stretch
Open

London| 26-ITP-May | Martin Mwaka | Sprint 3 | Stretch#1464
Temceo wants to merge 7 commits into
CodeYourFuture:mainfrom
Temceo:stretch

Conversation

@Temceo

@Temceo Temceo commented Jul 5, 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

I have completed sprint 3 stretch tasks in folder 4-stretch

@Temceo Temceo added 🏝️ Priority Stretch Do this once mandatory work is done 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 Jul 5, 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 on these stretch tasks. I have some comments

// Pay particular attention to the following:

// a) How the index variable updates during the call to find
// [MM] - The index variable increments by one each time the letter (str[index]) at the current index does not match the target letter (char)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tip: You don't need to include your name in comments as git keeps track of who made what changes.

// Must have more than one type of number
const hasMultipleDistinctDigits = new Set(cardStr.split("")).size > 1;

return has16Digits &&

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 correct, but can you read the task specification again? See what the return type of the function is meant to be.


const checks = {
minLength: password.length > 4,
hasUpperCase: /[A-Z]/.test(password),

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 use of regular expressions here

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

Labels

Module-Structuring-And-Testing-Data The name of the module. 🏝️ Priority Stretch Do this once mandatory work is done 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