GithubHelp home page GithubHelp logo

kailielexx / js-random-quote-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from richardjamesward/js-random-quote-generator

1.0 0.0 0.0 11 KB

A program that displays a randomly selected quote each time the user clicks a button.

JavaScript 74.56% CSS 17.96% HTML 7.48%

js-random-quote-generator's Introduction

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

View Project

Live Demo of this project for peer review.

Appraiser Comments

Awesome work, Richard! Your project looks great and after seeing so many of these, I appreciate you changing the styling up.

Nice job ensuring that your function returns the entire quote object and then adding in those extra features! I added a hint in the individual rubric if you want to try creating a non-repeating randomizer.

You're ready to move on to the next project and get further into JavaScript. Have fun!

Thanks for being a Techdegree student.

js-random-quote-generator's People

Contributors

richardjamesward avatar

Stargazers

Kailie Le avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.