Design comparison
SolutionDesign
Solution retrospective
Greetings. At the beginning, I wanted to show the answers by using the "display" property in JS. Though, I noticed that, despite I wanted to change the display to "none" or "block" with JS, every class with "display: none" in CSS will stay like that. So, I use another logic using a variable that changes between zero and one depending on when the user clicks the buttons to see the answers. This causes that sometimes the user has to double click the button.
I'd like to see if you have any advice for me in this part, feedback welcome.
Thank you.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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