I have a question, is it possible to change background according to a condition?
Example:
function A() {
if (meuArray.length === 7) {
eu quero background verde
} else {
background azul
}
}
At first I'm doing a card game called Black Jack or 21 in Brazil, and so far I have not found a viable form of background or a CSS in the array that contains the values of each card.
Would anyone have a tip or how to do it? Thanks