Mixed messages - motivation generator

Motivation Generator is a simple web application that generates motivational quotes to inspire you. With a simple click of a button, you can get a new quote to help motivate you throughout your day.
This is a very basic design, it uses a simple algorithm to randomly select motivational quotes from a pre-defined list and display them on the web page.
This took me probably about a few hours to make.
I am always trying to improve so any feedback would be appreciated!
Motivation generator

Hey, your code and site look great! One small feedback I could give is that you don’t need really to create the randomIndex variable in your function but could instead have put the expression for it inside the bracket for the phrases index like this:

generatedTxt.innerText = phrases[Math.floor(Math.random() * phrases.length)];

1 Like

Thanks for the feedback! :smile: I really appreciate it! :+1: