- 1
Can you please help me in making a Javascript quiz?
I want to make a dynamic quiz such that each question is displayed one at time with next question appearing on pressing next button, also there is a previous button. at last question there is a submit button on pressing of which the result is displayed with score. Please give me some idea how to make it.
8 Answers
+ 5
https://code.sololearn.com/WJ091SORyjV0/?ref=app
here is my first attempt at such a thing. it is not the best example, but it is an example 😊
+ 5
yes! that is very possible
+ 5
yes. if you click the js tab in the example I provided you will see how I did it.
note: the code actually starts after the comment 'old code'
i had started to convert it to use classes but got sidetracked..
+ 1
can I do something like a variable whose value increase on pressing new and decrease on pressing previous. for each value of that variable a question is displayed. and on submit total score counted
+ 1
and for display of each question I will need a if else or switch case right? one number for one question
0
I just need to know how to store answer input for each question
0
how to store that can you tell me
0
well that code looks really complicated. can pls comment which part is for storing?