
Solution retrospective
I'm most proud that I kept my javascript code clean and simple by using a query selector to select the accordion classes, and inside the event listener used a for loop to accomplish the task without much guidance.
What challenges did you encounter, and how did you overcome them?I encountered challenges with planning how to build the accordion with HTML and CSS. There are multiple ways, yet structuring how to use the best structured HTML became the challenge. I eventually used two divs to surround the question text and a hidden box with the description answers.
What specific areas of your project would you like help with?I would like feedback on my approach to the javascript concepts used (for loop) and whether this approach was the best one to accomplish this challenge, and I am open to getting feedback on whether a different javascript concept could be better and why.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Eric Aguayo'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