- 4
Scores for my quiz game in JavaScript?
How do I make scores for my quiz game in JavaScript?
5 Réponses
+ 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
+ 1
Just like anybody scores anything. correct answers over total answers. There's your score
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.
- 1
Please can you answer this question more better by coding even just only two questions with the score for each?
- 2
Ok, you've tried but can you please teach me Iteration?
I mean how to iterate the questions.
By calling function .