Counting Cards-May any one please help me on this?


Your code so far

var count = 0;
function cc(card) {
  // Only change code below this line
}else if(card===7||card===8||card===9){
}else if(card===10||card==='J'||card==='Q'||card==='K'||card==='A'){
      return count+" bet";
      return count+" hold";
  // 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');

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0.

Link to the challenge:

Javascript is case sensitive.
You also fail to check for one card value.

Fix these, and your code is golden :+1: