Skip to content

TamzinC/code-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-quiz

Description

Using my knowledge of Web APIs and the introduction of DOM, I have used Javascript to create a fully functioning code quiz. The quiz presents a series of coding related multiple choice questions with a countdown timer. Upon completion of the quiz, the user is then able to submit their score with their intials, to save it onto a leaderboard alongside scores from other users.

Installation

N/A

Usage

Open the webpage in your browser by following this link: https://tamzinc.github.io/code-quiz/index.html.

Once on the webpage you will be able to see a screen that looks like this:

image

Click on 'Start Quiz' to get started. This will begin the quiz and you should be presented with your first question and a selection of choices. The countdown timer will also be triggered to start from 60 seconds. It should look something like this:

image

If you select the correct answer, you will hear the relevant audio and see a message to indicate it's correct. If you choose the wrong answer, you will hear a different audio, a message to indicate it's incorrect and 10 seconds will be deducted from your timer.

Once you have answered all questions, you will be presented with an end screen. This will show your score (which is the remaining time left on the timer) and be prompted to enter your intials to submit your scores to the leaderboard. It should look like this:

image

If you click submit after entering your initials, you will be taken to the highscores page. This is where you will be able to see the scores of other users who will have played before you. Clicking on 'Go Back' will take you back to the start of the quiz and 'Clear Highscores' will clear all the current scores saved on the leaderboard.

image

If you would like to view my GitHub repo to view my code, please follow this link: https://github.com/TamzinC/code-quiz.

Credits

N/A

License

MIT License

Copyright (c) 2022 TamzinC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors