Store and display the highest quiz score locally using localStorage.
Users should be able to see their best score even after reloading the page.
Requirements:
Save the highest score at the end of each game session.
Retrieve and display it on the home or result screen.
Add a “Reset High Score” button for clearing saved data.
Acceptance Criteria:
High score persists between sessions.
If a new score exceeds the saved one, it updates.
Works without backend support.
Store and display the highest quiz score locally using localStorage.
Users should be able to see their best score even after reloading the page.
Requirements:
Save the highest score at the end of each game session.
Retrieve and display it on the home or result screen.
Add a “Reset High Score” button for clearing saved data.
Acceptance Criteria:
High score persists between sessions.
If a new score exceeds the saved one, it updates.
Works without backend support.