diff --git a/Quiz App Master/end.js b/Quiz App Master/end.js index ec9c85c..788c683 100644 --- a/Quiz App Master/end.js +++ b/Quiz App Master/end.js @@ -23,7 +23,8 @@ saveHighScore = (e) => { highScores.push(score); highScores.sort((a, b) => b.score - a.score); highScores.splice(5); - + + localStorage.setItem('mostRecentScore', score); localStorage.setItem('highScores', JSON.stringify(highScores)); window.location.assign('/'); };