It’s late and I’m tired.
Guide post for this challenge is locked so I’ll open a new topic.
Someone please explain why this won’t work:
' var count = 0;
function cc(card) {
// Only change code below this line
if (cc == 2, 3, 4, 5, 6){
count +1;
}
if (cc == 7, 8, 9){
count = count;
}
if (cc == 10, 'J', 'Q', 'K', 'A'){
count -1;
}
if (count <= 0){
return count; "Hold";
}
if (count > 0){
return count; "Bet";
}
else {
return "Change Me";
}
// Only change code above this line
}
cc(2); cc(3); cc(7); cc('K'); cc('A');'