felt like I know enough JS now to participate. Is this a valid answer? I coded this at work hehe
['♣️', '♥️', '♦️', '♠️'].map(s => console.log([`A${s}`].concat([Array(9).fill(0).map((v, i) => (i+2) + s)]).concat([...`J${s}-Q${s}-K${s}`.split("-")]).join()))
Hah, gimme a sec...
it's not functional!!!1!11!
This is valid, but super long
Обсуждают сегодня