From 42d5f47497d9d062b5907030e0c2435a108fbeb1 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Mon, 4 Dec 2023 14:09:07 +0200 Subject: [PATCH] nextQ --- index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/index.js b/index.js index 23736a1..3d086c0 100644 --- a/index.js +++ b/index.js @@ -98,3 +98,21 @@ const questions = [ generateQuestion(6, 6, 36, 6, 14, 21), ] console.log(questions); + +function setQ(n) { + var question = Document.getElementById("question") + question.innerText = questions[n].title; + +} +function nextQ() { + questionCounter++; + setQ(questionCounter); + if (questionCounter < questions.length) +} + +function prevQ() { +} + +function questionSubmit() { + +}