Counting cards game
<p>I am trying to write a card counting function in javascript.  Each card is assigned a value according to the table below. When the count is positive, the player should bet high. When the count is zero or negative, the player should bet low.</p>

<p>(i) if cards are  2, 3, 4, 5, 6 then count change =(+1);</p>

<p>(ii) if cards are 7,8,9 then count change =0;</p>

<p>(iii)if cards are  10, 'J', 'Q', 'K', 'A', then count change = (-1);</p>

<p>Here is my function:</p>

<pre><code>var count = 0;

function cc(card) {
  {
   case 2:
   case 3:
   case 4:
   case 5:
   case 6:
  return count++;
   case 7:
   case 8:
   case 9:
  return count;
   case 10:
   case 'J':
   case 'Q':
   case 'K':
   case 'A':
  return count--;
 }
}

cc(2); cc(3); cc(7); cc('K'); cc('A');
</code></pre>

<p>From the last line of the code, I was anticipating to get a '0', but instead it gives me a '1'. Can anyone enlightens me on this?</p>