We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31270ee commit 0bf4436Copy full SHA for 0bf4436
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -14,7 +14,7 @@ function getCardValue(card) {
14
return 11;
15
} else if (["J", "Q", "K"].includes(rank)) {
16
return 10;
17
- } else if (!isNaN(rank) && rank >= 2 && rank <= 10) {
+ } else if (rank >= 2 && rank <= 10) {
18
return Number(rank);
19
} else {
20
return "Invalid card rank.";
0 commit comments