Build a Card Counting Assistant - Build a Card Counting Assistant

Tell us what’s happening:

Hello
I have done all I think could make my code to work but all in vein
I have followed the instructions and most of the test is passing but not test 8 am confused because I don’t know where the bug i l have also tried the hint but couldn’t find the answer
Please am requesting for your help
I will appreciate your help
Thank you

Your code so far

let count = 0;
function cardCounter(card){
  if(card >= 2 && card <= 6){
    count = count + 1;
  }
  else if(card >= 7 && card <= 9){
    count = 0;
  }
  else if(card === 10 || card === "J" || card === "Q" || card === "K" || card === "A"){
    count = count - 1;
  }

  if(count > 0){
    return `${count} Bet`;
  }
  else if(count <= 0){
    return `${count} Hold`;
  }
}

console.log(cardCounter(7));


Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Card Counting Assistant - Build a Card Counting Assistant

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-counting-cards/68a23004e96a105df3a21fc4.md at main · freeCodeCamp/freeCodeCamp · GitHub

what should be the effect of a 7, 8 or 9 card?

Thank you I have seen the problem and solved it

Thanks