Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
The caculation algo.
What specific areas of your project would you like help with?The algo to calculate the age was pretty tricky. Still don't know what's the right way to do it... Still working on it.
Community feedback
- @AliRezaCodingPosted 6 months ago
Hello, You done the project very nice, I recommend you to compare the current date vs input date like this : if(new date() > new date(year, month - 1, day) {}; and remember months are calculated zero-based in new date, this will help you to validate inputs accurate and prevent calculating future date. I hope this will be helpful for you.
Marked as helpful0
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