Basic JavaScript - Counting Cards

Tell us what’s happening:
Describe your issue in detail here.
I am having a hard time with this one, when i use Switch i hit almost none of what i should.
when i used else if statements i came allot closer
something comes up wrong with my “Bet " and " Hold” and the last 3 card sequences were it mixes them up i’m not checking those boxes. any advice?

  **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 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Counting Cards

Link to the challenge:

We need to see the code for at least one of your attempts in order to help you.

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