I don't understand why my code is not passing

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

  **Your code so far**

var count = 0;

function cc(card) {
// Only change code below this line
if(card >= 2 || card <= 6){
} else if(card >=7 || card <= 9){
} else if(card = 10 || "J" || "Q" || "K" || "A"){
let holdBet = "Hold";
if(count > 0){
} else{
holdBet = "Bet"

return `${count} ${holdBet}`;
// Only change code above this line

cc(2); cc(3); cc(7); cc('K'); cc('A');

  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS aarch64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36

Challenge: Counting Cards

Link to the challenge:

= is the assignment operator, not a comparison

You also can’t chain comparisons like that, each expression is independent from the others

This is always true

This is also always true

Okay thank you I get what you are saying.

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