diff --git a/assets/js/logic.js b/assets/js/logic.js index 3229ac7..2406d9d 100644 --- a/assets/js/logic.js +++ b/assets/js/logic.js @@ -135,7 +135,7 @@ function checkAnswer(choice) { currentQuestionIndex++; if (currentQuestionIndex < questions.length) { displayQuestion(); - } + }; }, 1000); }; @@ -151,10 +151,10 @@ function endQuiz() { // Function to start the quiz function startQuiz() { startButton.parentElement.classList.add('hide'); - document.getElementById("questions").classList.remove('hide'); + document.getElementById("questions").classList.remove('hide'); startTimer(); displayQuestion(); -} +}; // Event listener for start button startButton.addEventListener('click', startQuiz);