¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 4 de 10 · Multimedia

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

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?