@LeviKuhaulua
Posted
Howzit, for this segment of code:
document.querySelectorAll('.answer').forEach(a => {
if (a !== answer) {
a.classList.add('hide')
}
})
Every time you click on a question, it is going to reapply the hide
class to all of the other questions even if they were clicked on by the user previously. By removing this segment of code, it will allow the user to see the answers to all the questions.
Hopefully this helped and happy coding!
Marked as helpful