FAQ Accordion using HTML, CSS and JavaScript

Solution retrospective
I had actually done something like this before, so I just leveraged on it to get the results I needed.
Would love to approach this challenge using Bootstrap next time though :)
What challenges did you encounter, and how did you overcome them?I experienced a bug in trying to make the site responsive. Turns out I still confuse 'min-height' and 'max-height'! Also encountered a problem while trying to add an '.active' class to the accordion using JS - turned out that I shouldn't use arrow functions in a 'for' loop for whatever reason... (Will check it out.)
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Melody Emmanuel's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord