Skip to content

This is a simple Quiz App I built using JS and leveraing Open Trivia API

Notifications You must be signed in to change notification settings

yashcrest/JavaScript-Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Quiz App using OpenTrivia API

This is a simple JavaScript Quiz App that lets users take a quiz on different categories by fetching questions from the OpenTrivia API.

Live Demo

Live Demo

Features

  • Category Selection: Users can choose a category for their quiz.
  • Question Navigation: Navigate through questions using next and previous buttons.
  • Correct Answer Indication: If the user answers incorrectly, the correct answer is shown temporarily.
  • Prevent Skipping: Users cannot proceed to the next question without selecting an answer.
  • End of Quiz Summary: Displays the user's total score at the end of the quiz.

Different Category in quiz

Quiz

Working Demo of the app

Quiz

How to Use

  1. Clone the Repository: git clone https://github.com/yashcrest/quiz.github.io.git

  2. Open index.html File: Navigate to the project folder and open index.html in your browser.

  3. Choose a Category: Select the desired category from the dropdown.

  4. Begin the Quiz: Click on "Begin" to start the quiz.

  5. Answer the Questions: Select the answers using the radio buttons and navigate using "Next" and "Previous."

  6. View Your Score: At the end of the quiz, your total score will be displayed.

Technologies Used

  • JavaScript (ES6)
  • HTML5
  • CSS3
  • Bootstrap 5

Contributing

Feel free to contribute to this project by forking the repository and submitting a pull request, or opening an issue with suggestions and bug reports.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is a simple Quiz App I built using JS and leveraing Open Trivia API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published