const question = document.getElementById('question');
const choices = document.getElementById('choices');
const btn = document.getElementById('btn');
{q: 'What is A?', c: ['A0', 'A1', 'A2']},
{q: 'What is B?', c: ['B0', 'B1', 'B2']},
{q: 'What is C?', c: ['C0', 'C1', 'C2']},
for (let i = arr.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[arr[j], arr[i]] = [arr[i], arr[j]];
function checkAnswer(li) {
if (li.textContent === quizSet[currentNum].c[0]) {
li.classList.add('correct');
li.classList.add('wrong');
question.textContent = quizSet[currentNum].q;
const shuffledChoices = shuffle([...quizSet[currentNum].c]);
shuffledChoices.forEach(choice => {
const li = document.createElement('li');
li.addEventListener('click', () => {