Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FAQ accordion

@Abraham-s-yakubu

Desktop design screenshot for the FAQ accordion coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


"The javascript was a bit of a challenge, not gonna lie, but I think I handled it well.

Community feedback

JimTK16 370

@JimTK16

Posted

Hi Abraham, nice attempt at this challenge. My suggestion is to put the actions in a separate function (something like clickHandler) to keep your code easier to follow. Also, you might want to have clearer names for your variables. For example, if I quickly scan through your code, it would take me some time to figure out what is 'cls'. Hope it helps. Jim

Marked as helpful

1

@Abraham-s-yakubu

Posted

@JimTK16 thanks for the feedback I still new to JavaScript 😅

0

Please log in to post a comment

Log in with GitHub
Discord logo

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