Pls guys, help out here, the last three cc() sequence is what it return me to fix

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

let count = 0;

function cc(card) {
// Only change code below this line
switch (card) {
case 2:
case 3:
case 4:
case 5:
case 6:
case 10: 
case 'J':
case 'Q':
case 'K':
case 'A':
var holdbet = 'Hold';
if (count > 0){
holdbet = 'bet';

return count + ' ' + holdbet;
// Only change code above this line

cc(2); cc(3); cc(4); cc(5); cc(6); cc(10); cc('J'); cc('Q')
cc('K'); cc('A');
cc(2, 3, 4, 5, 6); cc(2, 'J', 9, 2, 7); cc(2, 2, 10);

It’s a great idea to include the link to the lesson with your question ( Within the lesson, Ask for help will include that for you.

Try looking at the uppercase or lowercase of “hold” and “bet”. What does the test ask for? What are you returning?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.