Use the localStorage API to save and retrieve the user's highest scores from previous quiz attempts. This feature will display the highest score achieved on the quiz start page or results screen, providing users with a sense of progress and achievement.
Tasks:
[ ] Create a function to save the highest score after each quiz attempt.
[ ] Display the highest score on the quiz start page or results screen.
[ ] Ensure the high score is updated only when a new score exceeds the previous high.
Use the
localStorage
API to save and retrieve the user's highest scores from previous quiz attempts. This feature will display the highest score achieved on the quiz start page or results screen, providing users with a sense of progress and achievement.Tasks:
Priority: High
Dependencies: None