diff --git a/js/quiz.js b/js/quiz.js index a23a991..7686ada 100644 --- a/js/quiz.js +++ b/js/quiz.js @@ -172,7 +172,9 @@ function handleAnswer(chosen) { expDiv.innerHTML = '
' + e + '
').join(''); + q.explanation.map((e, i) => + '' + e.replace(/^[A-D]\.\s*/, 'ABCD'[i] + '. ') + '
' + ).join(''); const nextBtn = document.getElementById('next-btn'); nextBtn.style.display = 'inline-flex';