Count cards challenge 'Help needed'

Hello everyone!
Having trouble finding the right code for this one. If any would like to help me would be greatly appreciated.
My code is the following based in what each case is asking individually:

switch (card) {

  case 2, 3, 4, 5, 6:

  return '5 Bet';

  case 7, 8, 9:

  return '0 Hold';

  case 10,'J','Q','K','A':

  return '-5 Hold';

  case 3, 7,'Q', 8,'A':

  return '-1 Hold';

  case 2,'J', 9, 2, 7:

  return '1 Bet';

  case 2, 2, 10:

  return '1 Bet';

  case 3, 2,'A', 10,'K':

  return '-1 Hold';


  return "Change Me";

  // Comment here 

cc(2); cc(3); cc(7); cc('K'); cc('A');

Every single one is passing but only one not, and I don’t know what else to do.
Thank you.

Why all of these special case hard coding of answers? You seem to have missed the point of the challenge.

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