Improving the quiz
This was a basic application to begin with. There can be many more enhancements to this quiz to make it more feature rich. You are encouraged to add more features to it and refactor the code as well.
Here are some ideas that you can start with:
- Remove successfully matched countries and capitals
- If you watch closely, we do not need the variable
totalScore
Tip
List items with the class
correct
are enough for calculating scores. - Allow negative scoring if the user drops the country in an incorrect capital