Basic JavaScript - Counting Cards

Tell us what’s happening:

I have some issues here. For 1 Bet and -1 Hold, I got one for each correct and one for each wrong. I’d like to know where my mistake is.

Your code so far

let count = 0;

function cc(card) {
  // Only change code below this line
  

  return "Change Me";
  // 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/129.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Counting Cards

Could you edit your post to include your full code please?

1 Bet worked for 2, 2, 10, but not for 2, J, 9, 2, 7. -1 Hold worked for 3, 2, A, 10, K, but not for 3, 7, Q, 8, A.

Never mind, I figured it out.