Issues With Counting Cards PLEASE HELP!

Issues With Counting Cards PLEASE HELP!
0

#1
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');

#2

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.


#3

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


#4

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