Skip to content

Commit

Permalink
added ;
Browse files Browse the repository at this point in the history
  • Loading branch information
deponte-designer committed Dec 6, 2023
1 parent fdd032a commit fb27a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function checkAnswer(choice) {
currentQuestionIndex++;
if (currentQuestionIndex < questions.length) {
displayQuestion();
}
};
}, 1000);
};

Expand All @@ -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);
Expand Down

0 comments on commit fb27a29

Please sign in to comment.