Skip to content

London | 26-Jan-ITP | Shuheda Begum | Sprint 3 | Implement and Rewrite Test#1071

Open
codebyshay wants to merge 1 commit intoCodeYourFuture:mainfrom
codebyshay:Sprint-3-implement
Open

London | 26-Jan-ITP | Shuheda Begum | Sprint 3 | Implement and Rewrite Test#1071
codebyshay wants to merge 1 commit intoCodeYourFuture:mainfrom
codebyshay:Sprint-3-implement

Conversation

@codebyshay
Copy link

Learners, PR Template

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 all task required for Sprint 3 - Implement and rewrite test.

Questions

No questions.

@codebyshay codebyshay added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 25, 2026
@codebyshay codebyshay changed the title London | 26-ITP-Feb | Shuheda Begum | Sprint 3 | Implement and Rewrite Test London | 26-Jan-ITP | Shuheda Begum | Sprint 3 | Implement and Rewrite Test Mar 5, 2026
@A-O-Emmanuel A-O-Emmanuel added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 11, 2026
// Card must be at least 2 characters (e.g., "A♠")
if (typeof card !== "string" || card.length < 2) {
throw new Error("Invalid card");
}

Choose a reason for hiding this comment

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

Good error check here!

throw new Error("Invalid card");
}

// Suit is always the last character

Choose a reason for hiding this comment

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

Your comments are also good, but for one line code, it might not be necessary, but still it's good practice👍

Copy link
Author

Choose a reason for hiding this comment

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

Thank you. I did extra notes so I can refer back to it and understand what I did.

@A-O-Emmanuel A-O-Emmanuel added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 11, 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. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants