Challenge Counting Cards has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var count =0;
functioncc(card) {
// Only change code below this lineswitch (card) {
case'J':case'Q':case'K':case'A':case10:
count--;
}
if (count <7) {
count++;
}
if (count <=0) {
return count +" Hold";
}elseif (count >0) {
return count +" Bet";
}
// Only change code above this line
}
// Add/remove calls to test your function.// Note: Only the last will displaycc(2); cc(3); cc(7); cc('K'); cc('A');
Challenge Counting Cards has an issue.
User Agent is:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
.Please describe how to reproduce this issue, and include links to screenshots if possible.
My code: