Rozšiřující materiál ke stránce pole
//https://javascript.info/task/shuffle function shuffle(array) { array.sort(() => Math.random() - 0.5); } values = [7,8,9,10,'j','q','k','a'] colors = ['♠','♡','♢','♣'] cards = [] for (let i=0;i<values.length;i++){ for (let j=0;j<colors.length;j++){ cards.push(values[i]+colors[j]) } } shuffle(cards) console.log(cards)