Basic JavaScript - Counting Cards

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"
   }

I think this is the solution to what you’ve mentioned but it doesn’t work on this lesson anymore.