Giter Club home page Giter Club logo

yes-no-quiz's Introduction

Making a plan

  1. Decide on text and add to index.html
  2. Create button with ID -tells us when to launch the quiz (when user clicks)
  3. TDD JS countsAsYes function -takes user input (string), outputs Boolean -"yesss" should return True, "Nah" should return False, etc.
  4. Import countsAsYes, reference DOM elements & add event listener to button to start quiz
  5. Run quiz a) Confirm user wants to take quiz -use confirm call -if not, return b) Ask user's name -use prompt call c) Three yes/no q's -use prompt calls -use countsAsYes to determine if correct -track # of correct answers -test with console.log d) Alert user quiz is complete and print # correct answers with message
  6. Style page - intro, three sections, image, headers, unordered list, ordered list, fonts, color scheme (coolors.co)
  7. Stretch goals

yes-no-quiz's People

Contributors

cmmerritt avatar dpcairns 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.