Tell us what’s happening:
hi~!
i am not able to solve this problem please don’t tell me the soln i wan tto try it by my own but i want to ask here what ways can i opt to solve problems like this ???
Your code so far
var count = 0;
function cc(card) {
// Only change code below this line
if(card > 1 || card < 7) {
return "5 Bet";
} else if(card > 6 || card < 10) {
return "0 Hold";
} else if(card ) {
} else if(card) {
count += 2;
}
}
console.log(cc(2));
console.log(cc(7, 8, 9));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19041
.
Challenge: Counting Cards
Link to the challenge: