Currently, the scoreboard doesn't change and sits at "0/0" no matter how many questions the user goes through. Your task for this issue is to implement it! The first number should represent how many questions have been answered correctly. The 2nd number should represent how many questions the user has gone through. For example, if a user has been asked 3 questions and got 2 of them correct, it should say "Your score: 2/3"
Our recommendation is to do this within the handleInteraction() method in game.js. To be super clean, we also suggest writing another method solely to handle the change and display the score! You may also find it helpful to add some class properties to the Game Class's constructor.
Wait, how many did I get right?
You must be assigned this issue in order for your Pull Request to be accepted and merged. Please refer to "How to claim an Issue here: https://github.com/rachelktyjohnson/hktbf22-quiz-app/blob/master/CONTRIBUTING.md#how-to-claim-an-issue
Currently, the scoreboard doesn't change and sits at "0/0" no matter how many questions the user goes through. Your task for this issue is to implement it! The first number should represent how many questions have been answered correctly. The 2nd number should represent how many questions the user has gone through. For example, if a user has been asked 3 questions and got 2 of them correct, it should say "Your score: 2/3"
Our recommendation is to do this within the
handleInteraction()
method ingame.js
. To be super clean, we also suggest writing another method solely to handle the change and display the score! You may also find it helpful to add some class properties to the Game Class's constructor.