diff --git a/quiz.js b/quiz.js index c9a7ceaeb77173ed2446d8fa4bd8f387d86599fc..be351191be3025cabe2d7b1288f89ae4053dd130 100644 --- a/quiz.js +++ b/quiz.js @@ -1,7 +1,7 @@ // This horrible file is distributed under the CC0 license. Consult // ./LICENSE for more details. -// $Id: quiz.js,v 1.2 2024/01/11 16:19:30 oj14ozun Exp oj14ozun $ +// $Id: quiz.js,v 1.3 2024/01/12 10:15:28 oj14ozun Exp oj14ozun $ "use strict"; @@ -27,8 +27,7 @@ var opts = []; // DOM objects of each answer var progress = JSON.parse(window.localStorage.getItem("progress")) || {}; -function shuf(arr) { - // shuffle option-order using Fisher–Yates shuffle +function shuf(arr) { // shuffle arr using Fisher–Yates shuffle for (let i = 0; i < arr.length - 1; i++) { const j = Math.floor(Math.random() * arr.length); const tmp = arr[j];