Still wrong-card counting#

Tell us what’s happening:
I nearly had this and just couldn’t find a way of processes the information at the end. But I did learn not to use the return until I want an output.

However after watching the video Im still getting a two requirements not fulfilled so have a look please.

  **Your code so far**

var count = 0;

function cc(card) {
// Only change code below this line
  case 2:
  case 3:
  case 4:
  case 5:
  case 6:

  case 10:
  case "j":
  case "Q":
  case "A":

var holdBet = "Hold"
if(count > 0){
  holdBet = "Bet"

return count + " " + holdBet



// Only change code above this line

cc(10); cc("J"); cc("Q"); 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.150 Safari/537.36 Edg/88.0.705.68.

Challenge: Counting Cards

Link to the challenge:

Small typo here

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