/a_random_quote_generator-v1

App that displays random famous quotes each time a button is clicked. You will select your own quotes from famous historical figures, artists, scientists, celebrities, etc.

Primary LanguageJavaScript

A Random Quote Generator V1

App that displays random famous quotes each time a button is clicked. You will select your own quotes from famous historical figures, artists, scientists, celebrities, etc.

The objects in the quotes array store the individual properties of the quotes.

  1. quote - string - the actual quote
  2. source - string - the person or character who said it
  3. A citation property to at least one quote object. The value should be a string holding a reference to the source of the quote, like the book, movie or song where the quote originates.
  4. A year property to at least one quote object. The value should be a string or number representing the year the quote originated.

getRandomQuote function

The getRandomQuote function should create a random number, and use that random number to return a random quote object from the quotes array.

printQuote function

The app should display a new quote each time the user clicks the "Show another quote" button using a printQuote function.