Design comparison
SolutionDesign
Solution retrospective
Tried to use functions for the validation so it can be expanded a bit more easily if the validation has to get more complicated. Might be overkill for this level of validation maybe
Community feedback
- @fazzaamiarsoPosted about 2 years ago
Hi Rachel! Nice and Clean Solution!
I just have a little tip for your validation function to improve clarity. Here is my tip.
function validateFirstName(){ const isValid= firstName.value !== ""; toggleError(!isValid, firstName); return isValid; }
I hope it helps! Cheers!
Marked as helpful0@rachelktyjohnsonPosted about 2 years ago@fazzaamiarso Hey Fazza, that's SO much clearer. Thank you for that!
0
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