Giter Site home page Giter Site logo

code-quiz's Introduction

04 Web APIs: Code Quiz

For this assignment I was instructed to develop a small quiz using mainly Javascript in order to dynamically update HTML. It was through this that I was able to hide and reveal aspects of my HTML page by setting attributes found in my CSS file. By then looping through questions and collecting information on the user's answers, I was able to penalize and calculate a final score using the timer that I placed in the file. Then by using a secondary html page and the local storage, I was able to present the user with a history of their scores, as well as document which of them was their highest score. By doing this, I have met all the criteria that was placed before me, which I will include in the following User Story and Acceptance Criteria.

Given: User Story

AS A coding boot camp student
I WANT to take a timed quiz on JavaScript fundamentals that stores high scores
SO THAT I can gauge my progress compared to my peers

Given: Acceptance Criteria

GIVEN I am taking a code quiz
WHEN I click the Start button
THEN a timer starts and I am presented with a question
WHEN I answer a question
THEN I am presented with another question
WHEN I answer a question incorrectly
THEN time is subtracted from the clock
WHEN all questions are answered or the timer reaches 0
THEN the game is over
WHEN the game is over
THEN I can save my initials and score

The following animation demonstrates the application functionality:

Demonstration of the Coding Quiz Challenge.

Review

Code used includes HTML, CSS, and JavaScript. You are required to submit the following for review:

code-quiz's People

Contributors

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