JavaScript Responsive CSS Age Calculator App
Design comparison
Community feedback
- @ThatDevDiazPosted over 1 year ago
Hey! great solution.
For the validation checks, you can clean up a lot of the code by creating an error function. Ex: function errorCheck(){ }; This errorCheck function can then be called anytime the input value does not meet the criteria instead of writing individual errors for every validation check. This will clean up the code a bunch. You can place d, m, y in an array and callback this error depending on whichever validation check they failed. Just an idea for a different approach.
Your CSS and HTML was definitely a lot closer than mine that's for sure!
Great stuff. Was cool seeing a different approach to this. I learned some from your code. Keep on coding
Marked as helpful1
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