In this project, you'll create an app that displays random famous quotes each time a button is clicked. You can display a quote from a famous athlete, politician, or historical figure:
"The only thing we have to fear is fear itself." — Franklin Delano Roosevelt.
You'll need to use your knowledge of basic JavaScript syntax, including variables, loops, and object literals, to complete this project.
This project is a fun and effective way for you to practice fundamental JavaScript skills. It also gives you a simple interactive portfolio piece to show off your understanding of JavaScript.
- Array of objects is named quotes
- Array contains at least 5 quote objects
- Objects in the array include quote and source properties. If known, citation and date properties are present
- Function is named getRandomQuoteand returns a random object from the quotes array
- Function named printQuote calls the randomQuote function
- Function prints the quote to the page using the template supplied in the project instructions
- Comments are included in the code.
- As follow: