Html and css and hardcoded javascript

Solution retrospective
How can i refactor the javascript and make the code more modular and less hardcoded? And is there a way to create the functionality without using javascript? i am speed running through the challenges for now and comming back to them later on. If you have any advice that i would use later on the rerun, then i would appriciate it. thatnks for feedback.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @anhduy1202
You can check out my code :) Your work is great, but I think if one is clicked than the other should be closed so it looks better, and also the card form should remain the same (your card is expanded every time I clicked), check my solution!
Marked as helpful
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