var answer;
var count = 0;
function cc(card) {
// Only change code below this line
if (card <= 6) {
count --;
} else if (card <= 9) {
count += 0;
} else {
count ++;
}
if (count > 0) {
amswer = count + " Bet";
} else {
answer = count + " Hold";
}
return answer;
// 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');
Why does this not work? Not sure what I am missing. A little help please.