From f6deb79b8f461af4136455f6647e138f2c160785 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sun, 4 Feb 2024 07:24:39 +0100 Subject: [PATCH] New changes --- html-quiz.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/html-quiz.js b/html-quiz.js index 50a3a98..323054a 100644 --- a/html-quiz.js +++ b/html-quiz.js @@ -39,7 +39,7 @@ fetch('questions.json') MAX_QUESTIONS = htmlQuestions.length startGame() - + localStorage.setItem('htmlQuestions', htmlQuestions) }) //GAME FUNCTIONS @@ -121,9 +121,6 @@ const incrementScore = num => { const incrementFinal = num => { finalScore += num - if(htmlQuestions.length) { - finalScore++ - } console.log(finalScore) }