Mixed Messages - Status Update - needs review!

const greeting = [["Hello","Goodbye"],["Aloha","Aloha"],["Bonjour","Au revoir"],["Ciao","Ciao ciao"],["Shalom","Lehitra'ot"],["Howdy","Adios"]]; const action = ["listening to music while working" , "enjoying a cup of coffee and reading" , "taking a break and stretching my legs" , "brainstorming ideas for a new project" , "researching for an upcoming presentation"]; const feeling = ["feeling content and at peace" , "overwhelmed with excitement for the upcoming event" , "experiencing a sense of calm and relaxation" , "feeling a bit anxious about the upcoming deadline" , "filled with joy and gratitude for the blessings in my life"]; const time = ["mid-afternoon, nearing the end of the workday" , "early evening, with the sun beginning to set" , "late at night, well past midnight" , "early morning, just past sunrise" , "currently 3:00 PM in the afternoon"]; const weather = ["clear skies and a gentle breeze" , "hot and humid, with temperatures soaring into the high 90s" , "foggy with limited visibility" , "snowing lightly, and the temperature is below freezing" , "raining heavily with thunderstorms in the area"]; function chooseRandomfromArray(input){ //shorthand is choose, see line 14 let index = Math.floor(Math.random() * input.length); return input[index]; } var choose = chooseRandomfromArray function createRandomMessage(){ let greet = choose(greeting) //assigning this so I can reference the same subarray for hello/goodbye const message = `${greet[0]}! I'm currently ${choose(action)}, and I'm ${choose(feeling)}. It's ${choose(time)}, and the weather is ${choose(weather)}! ${greet[1]}!` return message } console.log(createRandomMessage())
  • This project was a great test, it wasn’t too hard, with some google I was able to use git on my desktop for the first time from start to finish!
    *This took me roughly an hour and a half!
  • (GitHub - tylershenderson/Mixed-Messages)