Skip to content

A timed quiz about Javascript, where wrong answers reduce the remaining time.

License

Notifications You must be signed in to change notification settings

huirayj/js-online-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Speed Quiz

Overview

In the following exercise, the task was to employ web API's and local storage to create a functional online Javascript quiz that was time-based and could display high scores.

Table of Contents

Pseudocode

  1. Creating and accessing a storage for questions, answers, and the correct answer index.
  2. Having a start button that initiates a countdown and the next question.
  3. New questions and answer buttons generating each time a button is clicked.
  4. Assigning the correct answer index to respective buttons and implementing a condition for incorrect choices.
  5. Storing the remaining time as a variable to be used as a score and capturing user name input.
  6. Storing the name and score locally.
  7. Displaying the high score as a separate html page.

Installation

  • Git clone the repository.
  • Open index.html in a browser of your choice.

Usage

  • Click on the "Start" button to begin.
  • Click the corresponding button to input your choice.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Links

Resources

Screenshots

Quiz screen

Quiz question

Result screen

Game over

High score screen

High score

About

A timed quiz about Javascript, where wrong answers reduce the remaining time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published