Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Coding Quiz

Table of Contents

  1. Description
  2. Badges
  3. Visuals
  4. Installation
  5. Usage
  6. Support
  7. Contributing
  8. Authors and acknowledgment
  9. License

1. Description

This app launches a short, 10 question quiz covering basic HTML, CSS, and JavaScript. It provides a UI which takes users through a main screen, into the main quiz. The quiz is timed and users are presented with a selection of multiple choice answers. Selecting the wrong answer will cause 10 seconds to be deducted from the timer, and a sound will be triggered, and a prompt will appear stating whether the answer was correct, or if not, what the correct answer was. If the user completes all questions, or the timer runs out, the quiz ends, and the user will be presented with a final score, which can be saved onto a highscore list derived from local storage. Scores will be kept unless manually deleted. Users can replay the quiz via a button link.

2. Badges

HTML5 CSS3 JavaScript Edge Firefox Google Chrome IE Opera Safari

3. Visuals

The following images demonstrate the password generator's functioning: screenshot 1 screenshot 2 screenshot 3 screenshot 4

4. Installation

The app can be used in browser, using HTML, CSS, and JavaScript. It can also be viewed in a Code editor such as Microsoft Visual Code.

5. Usage

This app can be used to test basic knowledge of HTML, CSS, and JavaScript. The code contains comments to explain and identify the different parts of code and their functions. The JavaScript contains:

• A variable containing the list of questions as prompts

• Links to sound files contained in the assets folder which will be triggered depending whether the selected answer was correct or incorrect

• a function which causes the timer to deincrement in seconds from 120

• a function which causes the timer to reduce an extra ten seconds when the wrong answer is selected

• A function to process questions until the quiz ends or the timer runs out

• A conditional statement to check if all questions have been presented, whereon quiz will end

• A function to end the quiz if the timer runs out

• A conditional statement to save the final score to local storage, to be retrieved in future

6. Support

For support, users can contact tydamon@hotmail.com.

7. Contributing

Any contributions you make are greatly appreciated. If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Add some NewFeature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

8. Authors and acknowledgment

The author acknowledges and credits those who have contributed to this project, including:

https://git.bootcampcontent.com/Monash-University/MONU-VIRT-FSF-PT-11-2023-U-LOLC

• Chee Ho Tai

• Pranita Shrestha

9. License

Distributed under the MIT License. See LICENSE.txt for more information.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages