Skip to content

In this project, created 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.

Notifications You must be signed in to change notification settings

Abdulwarissherzad/Quote-Generator-Random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-quote-generator

Treehouse Techdegree Project #1 - Random Quote Generator

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.

Project Requirements

Create Array of Objects

  • Array of objects is named quotes
  • Array contains at least 5 quote objects

Quote Object

  • Objects in the array include quote and source properties. If known, citation and date properties are present

getRandomQuote function

  • Function is named getRandomQuoteand returns a random object from the quotes array

printQuote function

  • Function named printQuote calls the randomQuote function
  • Function prints the quote to the page using the template supplied in the project instructions

Code comments

  • Comments are included in the code.

Image Sample

  • As follow:

alt text

About

In this project, created 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages