Issues With Counting Cards PLEASE HELP!

This is my code but it is not being accepted, all advice welcome
var count = 0;

function cc(card) {
// Only change code below this line
 switch(val) {
       case num < 1:
  answer="Hold";
  break;
case num > 0:
  answer="Bet";
  break;
    
   }
  return "Change Me";
  // Only change code above this line
}

// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');

Could you explain what it is exactly your code is meant to do?

And just so we’re sure you understand the question, could you explain the question in your own words?

At the moment, it seems to me like if I call your cc function, it will return “Change Me” and do nothing else.

it is alright i got it working fine afterwards turns out that the function itself was supposed to be written in a totally different manner (the switch statement)
it was for

sorry i messed up there it was for one of the jS challenges in the course but i got it alright