Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

JavaScript Responsive CSS Age Calculator App

@Yemresalcan

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

Cesar D. 400

@ThatDevDiaz

Posted

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 helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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