GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 4 von 10 · Medien

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'.

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck