Design comparison
SolutionDesign
Solution retrospective
Pretty simple project. I feel like my JavaScript could be cleaner. I wrapped my function in a modular pattern to protect my variables and not cloud the global scope.
I also made a variable for each corresponding icon and message for their respective input fields. I thought of doing querySelector all for them (using "this" and a for each loop) but each element needed to work independently upon submit. If anyone has recommendations that'd be appreciated.
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