Code Monkey home page Code Monkey logo

a_random_quote_generator-v1-1-2's Introduction

Steps taken to complete this project. I downloaded the zips files which consisted of css, html, and js and opened them up in visual studio text editor. Since the HTML and CSS file was already written out I proceeded to work on the js. I at first wrote my array with multiple strings, but realized thats not what the instructipns called for so i created objects within an array with a var = quote. The 2nd thing I procceeded to do was add quotes and sources to my opbjects. Then the function getrandomquote which creates a random number was written out. This part of the project is not fully my work I googled and found an example function that I used from treehouse https://teamtreehouse.com/community/i-need-help-with-the-random-quote-generator-project. I then created a function that shows a new quote everytime the button is clicked and below that I used the following code snippet, along with the variable storing the string I assembled, to update my project’s HTML with a random quote:

document.getElementById('quote-box').innerHTML = yourStringHere;

Sources I used for this project outside of treehouse consisted of W3 and MDN

a_random_quote_generator-v1-1-2's People

Contributors

amilord avatar

Watchers

 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.