rrentQuestion = quizData[currentQuestionIndex];
        if (selectedOption === currentQuestion.answer) {
          score++;
        }
        currentQuestionIndex++;

        if (currentQuestionIndex < quizData.length) {
          loadQuestion();
        } else {
          showResult();
        }
      }

      function showResult() {
        const quizContainer = document.querySelector(".quiz-container");
        quizContainer.innerHTML = `<h2>Your Score: ${score}/${quizData.length}</h2>`;

        const h