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 4541230 commit 60dd1f1Copy full SHA for 60dd1f1
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -39,9 +39,9 @@ function getCardValue(card) {
39
}
40
41
// Compute value
42
- if (rank === "A") return 11;
43
- if (["J","Q","K"].includes(rank)) return 10;
44
- return parseInt(rank);
+ if (rank === "A") return 11;
+if (["J","Q","K"].includes(rank)) return 10;
+return parseInt(rank);
45
46
47
// The line below allows us to load the getCardValue function into tests in other files.
0 commit comments