A simple and interactive quiz game where users can choose the range of questions and test their knowledge with randomly selected questions from that range.
- โ User inputs for start and end question numbers
- ๐ฒ Random selection of questions within the chosen range
- ๐ Visual feedback for correct and incorrect answers
- ๐ Question status display (e.g., "Question 1 / 10")
- ๐ Final score displayed at the end
- ๐ฑ Responsive and user-friendly design
/project-root
โ
โโโ index.html # Main HTML + JavaScript for running the quiz
โโโ MM.txt # Text file containing questions and answers
- Questions are numbered.
- Answers start with either
โข(bullet) orโ(check mark) - The correct answer is marked with
โ
Example: What is the capital of the Republic of Azerbaijan?
โข Guba
โ Baku
โข Ganja
โข Sumgait
- Open
index.htmlin a modern web browser. - Enter the start and end question numbers, and the number of questions for the quiz.
- Click the Start Quiz button.
- Select answers for each question and click Check to verify.
- Click Next to proceed to the next question.
- At the end, the total number of correct answers will be displayed.
- HTML5
- CSS3
- JavaScript (ES6+)
- Fetch API for loading questions
- The
MM.txtfile should be loaded via a server or local server environment due to browser security restrictions. - Fetch may not work properly when opening files via
file://protocol. - Recommended to use a local server, e.g., VSCode Live Server or Python
http.server.
This project is open for educational and personal use.
