This is a simple quiz app built using HTML, CSS, and JavaScript. It allows users to answer multiple-choice questions and provides feedback on whether the selected answers are correct or wrong. The app includes a start button, next button, and a set of questions with corresponding answer options.
- Start button initiates the quiz.
- Questions are displayed one at a time with multiple-choice answer options.
- Correct and wrong answer feedback is provided.
- Next button allows users to move to the next question.
- At the end of the quiz, users can restart it.
- HTML
- CSS
- JavaScript
The quiz includes a set of sample questions related to different topics. You can customize the questions by modifying the questions
array in the script.js
file.
const questions = [
{
question: "What is 4+4?",
answers: [
{ text: "4", correct: false },
{ text: "8", correct: true },
{ text: "16", correct: false },
{ text: "44", correct: false },
],
},
// Add more questions as needed
];