From 65a7c98ff2d5bd80e793c06cff19b038e4e45c12 Mon Sep 17 00:00:00 2001 From: JasperBoller Date: Mon, 5 May 2025 14:31:27 +0100 Subject: [PATCH] Update end.js Update made --- Quiz App Master/end.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('/'); };