Design comparison
SolutionDesign
Solution retrospective
Hey, this is my age calculator app solution. It was more challenging than I expected. I'm sure that my logic for calculating age isn't the best one, but it works.
It is only possible to calculate age if you enter a date that is more recent than the year 1000. For some reason, JS won't allow you to create a new date that has less than 4 digits in a year.
Feel free to to give a feedback. Happy coding.😊
Community feedback
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