Design comparison
Community feedback
- @sgnsynPosted over 1 year ago
you should also validate for months in this year that are greater than this month and for days in this month that are greater than today.
Marked as helpful0@ajeetachalPosted over 1 year agoThank you for your suggestion on validating for months and days. It's important to ensure that the input provided by the user is valid and within a certain range to avoid unexpected behavior or errors in the program.
Validating for months greater than the current month and days greater than today's date is definitely a good practice to follow. This will help ensure that the user inputs a valid date that is not in the future, which could cause issues with the age calculation.
I appreciate your feedback and will definitely consider implementing your suggestion in my HTML JS age calculator project. Thank you again for your input!@sgnsyn
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