Counting Cards: Code not passing the 4th test

Tell us what’s happening:
Describe your issue in detail here.

  **My code so far**
let count = 0;

function cc(card) {
// Only change code below this line
let count = "";
switch(card) { 
case 2, 3, 4, 5, 6:
return "5 Bet";
break;
case 7, 8, 9:
return "0 Hold";
break;
case 10, 'J', 'Q', 'K', 'A':
return "-5 Hold";
break;
case 3, 7, 'Q', 8, 'A':
return "-1 Hold";
break;
case 2, 'J', 9, 2, 7:
return "1 Bet";
break;
case 2, 2, 10:
return "1 Bet";
break;
case 3, 2, 'A', 10, 'K':
return "-1 Hold";
break;
default:
return "Change Me";
break;}
// Only change code above this line
}

cc(2); cc(3); cc(7); cc('K'); cc('A');
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Counting Cards

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.