Hello again, sorry the link didn’t work for you. Here is my code:
//a deck of Lenormand cards and possible positions
const fortune = {
card: ['Rider', 'Clover', 'Ship', 'House', 'Tree', 'Clouds', 'Snake', 'Coffin', 'Bouquet', 'Scythe', 'Whip', 'Birds', 'Child', 'Fox', 'Bear', 'Stars', 'Stork', 'Dog', 'Tower', 'Garden', 'Mountain', 'Crossroads', 'Mice', 'Heart', 'Ring', 'Book', 'Letter', 'Man', 'Woman', 'Lily', 'Sun', 'Moon', 'Key', 'Fish', 'Anchor', 'Cross'],
position: ['upright', 'reversed']
};
//3 functions to randomly draw a card & position, and return a text message
const cardPull = () => fortune.card[Math.floor(Math.random()*fortune.card.length)];
const cardPosition = () => fortune.position[Math.floor(Math.random()*fortune.position.length)];
const generatedFortune = () => `You drew the ${cardPull()} card. The card is ${cardPosition()}.`;
//draw 3 cards and display fortune to user
const draws = ['Situation', 'Action', 'Solution'];
console.log();
for (each of draws) {
console.log(each + ': ' + generatedFortune());
};
console.log();