Design comparison
Solution retrospective
Because I am a newbie on JS. All tips are welcome.
Community feedback
- @abhixdevPosted 7 months ago
Hey there, great job on your work! I noticed a tiny bug in the code related to error handling. Specifically, when a user enters an invalid month or year, the error message should prompt them to "Enter a valid Month" or "Enter a valid Year". To address this, I suggest making changes to lines 86 and 93 within the app.js file.
Additionally, I observed that the form is currently accepting dates greater than 31, and month greater than 12. To ensure accuracy, you might want to consider adding a condition like "if(day > 31)" or "if(month>12)" in the logic before proceeding to calculate the age.
Marked as helpful0@LadyoftheCavePosted 7 months ago@abhixdev
Thank you very much Abhishek, I will change that :)
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