My Random Quote Machine, how to improve

feel free to tell what you think, copepenand how can i make it better?

Just display a default quote, so the user can see something before hitting the btn to get new one

1 Like

Hi,
Adding to the sorinr’s suggestion, you can move your Quote generating logic inside a function, let’s call it “RandomGenerator()” and then call your random Quote function as soon as the document is ready and also when user clicks on the New Quote button.

  • Apart from this, try exploring Google fonts (https://fonts.google.com/), it will enhance your webpage visually.
  • Also, try putting up a background image or pattern (See codepen Assest), it’s on the bottom right corner of your codepen screen.

Good Job ! and Happy Coding :slight_smile:

1 Like

Also you can change the background color of the div in which quote is displayed for each new quote

1 Like