Skip to content

alexandrabatrak/coding-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coding quiz

💛

About

Coding: The process of screaming at a computer monitor for hours until realizing that the problem was a missing semi-colon or comma; ~Urban Dictionary

The quiz allows to test one's knowledge of JavaScript fundamentals with a timed multiple choice quiz. For every wrong answer user is penalised by losing 10 seconds of the remaining time. Upon completion (or time run out) user is able to save their score, so they can challenge themselves over and over, until they get all the answers right.

This app runs in the browser, and features dynamically updated HTML and CSS powered by JavaScript. As always, built with accessibility in mind. Tested in Chrome, Firefox and Opera.

Features:

  • Interactive timed quiz
  • Option for user to select amount of questions (10/15/20)
  • Randomised questions, each with 4 randomised answer options
  • Time penalty on incorrect answer
  • Get 2 points for the correct answer, lose 1 point for incorrect
  • Client-side scores saving and display of the top 10 scores (to save memory only the last 100 scores are stored)
  • UI and sound effect feedback on correct/incorrect answer choice, variable ending sound based on the reason game ended - either all questions are answered or time runs out
  • Option to switch the sound off (on by default)
  • Clean, polished and responsive mobile-first design
  • It's beautiful 👌

Start screenshot Quiz screenshot Highscores screenshot Mobile screenshot

What I've learned

this week material

  • JSON
  • localStorage
  • JS element creation
  • Timer function

researched while working on this project

Credits

License

Licenced under the CC BY-NC 4.0 license.

Image of github-profile-views-counter

Copyright © 2023 Alexandra Batrak