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 bd89fda commit cbfdf80Copy full SHA for cbfdf80
Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js
@@ -35,9 +35,7 @@ function getCardValue(card) {
35
if (rank === "A") {
36
return 11;
37
}
38
- else if ( rank >= 2 && rank <= 10) {
39
- return Number(rank);
40
- }
+ return Number(rank);
41
42
43
// The line below allows us to load the getCardValue function into tests in other files.
0 commit comments