I do not understand what i am writing wrong !!!
Someone please look at my code and tell me what i did wrong .
var count = 0;
function cc(card) {
// Only change code below this line
if (card >= 2 && card <= 6 ) {
count++;
}else if (card >= 7 && card <= 9) {
count +=0;
}else if (card === 10 || card === "J" || card === "Q" || card === "K" || card === "A") {
card--;
} if (count > 0) {
return card + "Bet"
}else if (count <0)
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');