Submitted over 3 years agoA solution to the FAQ accordion card challenge
Responsing css and accordion taps by javascript
@HJKim423

Solution retrospective
const contant = event.target.parentNode.nextSibling.nextSibling; const btn = event.target.nextSibling.nextSibling.childNodes[0]; Is it okay to write it like this?
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on HJKIM'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