- 4

Scores for my quiz game in JavaScript?

How do I make scores for my quiz game in JavaScript?

14th Apr 2022, 10:31 AM
Khabir khalid
Khabir khalid - avatar
5 Answers
+ 3
You need to declare a variable to store the score. Initialize it as 0. Increment it with each correct answer. demo: https://code.sololearn.com/WSx4A55h4dl9/?ref=app
14th Apr 2022, 11:52 AM
Gordon
Gordon - avatar
+ 1
Just like anybody scores anything. correct answers over total answers. There's your score
14th Apr 2022, 11:11 AM
Slick
Slick - avatar
0
My answer is always as good as the question. You ask badly, you get a bad answer. Explain the problem and show your code.
14th Apr 2022, 11:28 AM
Slick
Slick - avatar
- 1
Please can you answer this question more better by coding even just only two questions with the score for each?
14th Apr 2022, 11:26 AM
Khabir khalid
Khabir khalid - avatar
- 2
Ok, you've tried but can you please teach me Iteration? I mean how to iterate the questions. By calling function .
14th Apr 2022, 11:30 AM
Khabir khalid
Khabir khalid - avatar