  questionText.innerText = currentQuestion.question;
        questionElement.appendChild(questionText);

        currentQuestion.options.forEach((option) => {
          const optionButton = document.createElement("button");
          optionButton.classList.add("option");
          optionButton.innerText = option;
          optionButton.onclick = () => selectAnswer(option);
          questionElement.appendChild(optionButton);
        });
      }

      function selectAnswer(selectedOption) {
        const cu