Skip to content

Commit c286e4a

Browse files
committed
Revert "validate the first if statement to include the condition there the rank is "10" so the string is 3 characters"
This reverts commit 82958b5.
1 parent 82958b5 commit c286e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getCardValue(card) {
2525
// TODO: Implement this function
2626
if (
2727
card.length < 2 ||
28-
card.length >= 3 ||
28+
card.length > 3 ||
2929
!["♠", "♥", "♦", "♣"].includes(card.slice(-1))
3030
)
3131
throw new Error("invalid suit");

0 commit comments

Comments
 (0)