From c73a5e0e660116648f5e7fe24f6a41a7de3745b9 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Mon, 4 Dec 2023 14:09:22 +0200 Subject: [PATCH] counter added --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 001595c..500d596 100644 --- a/index.js +++ b/index.js @@ -104,6 +104,7 @@ function setQ(n) { question.innerText = questions[n].title; } +var questionCounter = 0; function nextQ() { questionCounter++; setQ(questionCounter);