How to Play:
Trivia Quiz with 10 questions. The quiz starts automatically when the page is loaded. The user is given 30 seconds to answer the question and the remaining time is displayed on the screen.
The correct answer will be displayed after the user selects the right or wrong answer of if the time allocated to answer the question expires. Also displayed is a timer showing the user when the next question will be displayed.
After all 10 questions have been answered, the user's score showing the number of correct and wrong answers will be displayed. The user will also have the choice to restart the quiz.
Notes Each time the quiz is started, the questions are randomized so that they are not displayed in the same order. The answers are also randomized. Used the Durstenfeld shuffle to shuffle both the questions and answers.
Assets Used:
Weird Science Trivia Quiz from: https://www.thoughtco.com/weird-science-trivia-quiz-4061651 by Anne Marie Helmenstine, Ph.D.