TEST




MCQ Quiz


What is the capital of France?
A) Paris
B) London
C) Berlin
D) Madrid

options.forEach(option => { option.addEventListener('click', () => { const isCorrect = option.getAttribute('data-correct') === 'true'; if (isCorrect) { option.classList.add('correct'); } else { option.classList.add('incorrect'); }

// Disable clicking on other options after selecting one options.forEach(o => o.style.pointerEvents = 'none'); }); });

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top