GoConqr has a new look! Let us know what you think.

Module 4 of 10 · Media

Create a random quote generator

Kostas Diakogiannis

Create a random quote generator

M-1 Create a random quote generator

Create 10 objects that contain quotes or sayings as strings from famous peoples, and the names for every person who has credit for this quote, and store each object into an array.

ex.

let quoteDatabase = [

   {author: 'Jesus Christ',  quote: 'Ask and you shall receive'},

   {author: 'Julius Caesar', quote: 'Veni, Vidi, Vici'},

   {author: 'Tony Montana', quote: 'Say hello to my little friend!'}

]

etc.

Then create a function that any times it executes selects a random quote and prints the quote and the name of the man who said the quote after it as a credit.

ex. 'Ask and you shall Receive, Jesus Christ'.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?