Counting card solution problem

My solution to counting cards is nearly identical to the first one shown in hints, which works, my code is:

switch(card) {
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:
  card++;
  break;
  case 10:
  case "J":
  case "Q":
  case "K":
  case "A":
  count--;
  break;
}
if(count > 0) {
return count + " Bet";
}else {
return count + " Hold";
}

which doesn’t pass
This does and I can’t tell the functional difference:

switch (card) {
case 2:
case 3:
case 4:
case 5:
case 6:
count++;
break;
case 10:
case "J":
case "Q":
case "K":
case "A":
count--;
break;
}
if (count > 0) {
return count + " Bet";
} else {
return count + " Hold";
}

What am I missing?

Never mind, when they were lined up I saw it, I need to change card in the incrementer to count, typo, lol

You have a typo here.