When "Play again" is pressed after quiz completion the questions are not visible but the timer starts. How can I fix this issue? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

When "Play again" is pressed after quiz completion the questions are not visible but the timer starts. How can I fix this issue?

https://code.sololearn.com/WNstA4VOTpha/?ref=app

3rd Jun 2023, 9:16 AM
Nandini Prajapati
Nandini Prajapati - avatar
4 Answers
+ 4
The showScore() function sets both questionBox and choiceBox style.dipslay to none (lines 114, 115). What do you need to do to get them to display when the "Play Again" button is clicked?
3rd Jun 2023, 11:38 AM
ODLNT
ODLNT - avatar
+ 1
did you define the function to be called when the Next button becomes the Play Again button? You have one button executing different things in your program, which makes it hard to organize.
3rd Jun 2023, 1:39 PM
Bob_Li
Bob_Li - avatar
+ 1
Nandini Prajapati here is a simplified version of your game. https://code.sololearn.com/WIBQ1dv48f94/?ref=app
6th Jun 2023, 11:30 AM
Bob_Li
Bob_Li - avatar
0
I want the quiz to restart when the play again button is pressed, it does Start but the questions are not visible
4th Jun 2023, 8:28 AM
Nandini Prajapati
Nandini Prajapati - avatar