What coercion bug? You don’t need to coerce anything into a string.
The issue is with the array alphabet.
Your conditional statement currently only checks if alphabet is defined. It doesn’t compare it with the value of card.
Essentially it’s shorthand for: if (card === 10) || if (alphabet)
To explicitly make a comparison with alphabet, your code would have to be: if (card === 10 || card === alphabet)
But that would check if card is equal to [“J”, “Q”, “K”, “A”] (i.e. the whole array), not to any single value within that array. So you need to find a way of checking if the value of card matches any of the values within the array. You could use indexOf() for this perhaps.
If you swap the order of the if else statements, you’ll see that your code breaks, because this conditional statement is faulty. Also, it’s a minor point, but the conditional statement checking for values 7-9 is actually redundant anyway. You don’t actually need to include it at all, as it doesn’t actually do anything.