Hi good evening, I’m JIO this my project is not the better, but I public my code to get a feedback about my project and opinion so I hope your answers. Excuse me if you don’t understand the all message becuse the English is not my first lenguaje, but I am try.
/* Create the arrays with the messages */
const message = [“Today brings new energy and motivation. Take the lead in a project!”, “Stability is key today. Focus on creating balance in your routine.”, “Your communication skills shine. It’s a great day to express your ideas!”, “Emotions may run high. Take time to nurture yourself and those close to you.”, “Confidence is your strength today. Step into the spotlight and own it!”, “Attention to detail is important now. Stay organized and focused.”, “Harmony is within reach. Seek balance in your relationships and decisions.”, “Intensity surrounds you. Trust your instincts and embrace transformation.”, “Adventure calls. Explore something new, even if it’s just an idea!”, “Hard work pays off. Stay determined and keep your goals in sight.”, “Innovation is key today. Think outside the box and embrace change.”, “Creativity flows. Channel your emotions into something artistic or meaningful.”];
const zodiacSigns = [‘Aries’, ‘Taurus’, ‘Gemini’, ‘Cancer’, ‘Leo’, ‘Virgo’, ‘Libra’, ‘Scorpio’, ‘Sagittarius’, ‘Capricorn’, ‘Aquarius’, ‘Pisces’];
const days = [‘Monday’, ‘Tuesday’, ‘Wednesday’, ‘Thursday’, ‘Friday’, ‘Saturday’, ‘Sunday’];
const asciiArt = [`
-
*
-
-
**
,
───▄█▌─▄─▄─▐█▄
───██▌▀▀▄▀▀▐██
───██▌─▄▄▄─▐██
───▀██▌▐█▌▐██▀
▄██████─▀─██████▄
,
───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░█░░░░░█░░█────
─▄▄──█░░░▀█▀░░░█──▄▄─
█░░█─▀▄░░░░░░░▄▀─█░░█
,
><(((º>,
/_/\
( o.o )
^ <
,
@@@
@ @
@@@
|
,
( -.-)
<
`];
/* Create function to show the message /
const mixedMessageHoroscope = (arrayM, arrayZS, arrayD) => {
// Generate random index value
const indexArrayM = Math.floor(Math.random() * arrayM.length);
const indexArrayZS = Math.floor(Math.random() * arrayZS.length);
const indexArrayD = Math.floor(Math.random() * arrayD.length);
// Get random item
const randomMessage = arrayM[indexArrayM];
const randomZodiacSign = arrayZS[indexArrayZS];
const randomDay = arrayD[indexArrayD];
// return the value
return Your sign is ${randomZodiacSign}, the day ${randomDay}, ${randomMessage}\n
;
}
/ Create the fucntion that show the ASCII Art */
const mixedMessageASCIIArt = arrayASCIIArt => {
// Generate random index value
const indexzASCIIArt = Math.floor(Math.random() * arrayASCIIArt.length);
// Get random item
const randomASCIIArt = arrayASCIIArt[indexzASCIIArt];
// return the value
return randomASCIIArt;
}
console.log(mixedMessageHoroscope(message, zodiacSigns, days));
console.log(mixedMessageASCIIArt(asciiArt));