NewguyenGitHub / JavaScript-Code-Quiz

MIT License
0 stars 0 forks source link

JavaScript-Code-Quiz

Description

The project is a quiz about JavaScript fundamentals. When start button is hit, the timer and question appears. The user will be prompt with a question and options and has 75 seconds to complete. If user selects correct answer, the correct answer will highlight green. If user selects wrong answer, the correct answer will hightlight green, wrong answer will highlight red, and timer will be reduced by 10seconds. If user runs out of time, the quiz ends. Note User must select next button to move to next question. Time will continue to go down. When quiz is over, the user can either add their initials to be saved or restart the quiz. Once saved, the leaderboard will display. The user may decide to clear the scores or go back home.

I learned how to create eventlisteners, use local storage, and web APIs to create this project.

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

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

Installation

N/A

Usage

This is a website that is a quiz for JavaScript fundamentals. Quiz-Demo-Home Quiz-Demo-Question Quiz-Demo-Right Quiz-Demo-Wrong Quiz-Demo-Save Quiz-Demo-Save Quiz-Demo-LeaderBoard Quiz-Demo-Clear

Credits

N/A

License

Please refer to the LICENSE in the repo.