Skip to content

Conversation

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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

throw new Error("Invalid card rank.");
}
// Set values to be tested.
const rank = card.charAt(0);

Choose a reason for hiding this comment

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

What about 10♠, getting the first character doesn't work for 10, better should be rank = card.slice(0, -1).

Copy link
Author

Choose a reason for hiding this comment

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

@MustafaBora
Copy link

Nşce changes, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants