Error: SyntaxError: unknown: Unexpected character '“' (14:5)

//
Tell us what’s happening:

  **Keep getting this Error and am not sure why: 
> 14 | case “J”:
                 |      ^**

This should line up with in the minus 1 row but will not submit, any advise?


switch(card){
case 2:
case 3:
case 4:
case 5:
case 6:
count++;
break;
case 10:
case “J”:
case “Q”:
case “K”:
case “A”:
count--;
break;
}
  var holdbet = 'Hold'
  if (count > 0) {
    holdbet = 'Bet'
  }

  return count + " " + holdbet;

// 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81.

Challenge: Counting Cards

Link to the challenge:

HI @MstatenECSA !

There is an issue with the type of quotes you are using.
They look like fancy quotes.

You should use regular quotes like these in programming “”

and like these

2 Likes

oh no wonder, Thank you and High-Five!!!

1 Like