Design comparison
Solution retrospective
I'm glad I was able to figure out how forms work, take notes and apply it to a project for the first time.
What challenges did you encounter, and how did you overcome them?Overlaying the (!) symbol on the error state was challenging, and I had to adjust the relative placement for each element.
What specific areas of your project would you like help with?My JS is pretty messy I'm sure, I'd like to know if there's a more efficient way I can write the same if-statements for every input element on the form.
Community feedback
- @sahilmir1Posted 4 months ago
I think your JS is fine. Even though your code is long it is still readable so, I would not call it messy. Having long lines of code is hard to avoid when writing vanilla JS. Maybe for your next challenge you can try using React or Vue.
1
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