function getRandomCard() { const suits = ['♣', '♦', '♥', '♠']; const faces = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']; const randomSuitIndex = Math.floor(Math.random() * suits.length); const randomFaceIndex = Math.floor(Math.random() * faces.length); return faces[randomFaceIndex] + suits[randomSuitIndex]; } console.log(getRandomCard());