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

Age calculator using React

Breizon 40

@Breizon

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello community, I share my first solution corresponding to this challenge that I thought was great. I hope you like it and I´m very happy to read your feedback.

Community feedback

@Pegula00

Posted

Looks cool but check a bit the error handling and the calculations. For example, it calculates like there is no error if I put in 31st of February as input, and we know that February can have maximum of 29 days and that is on a leap year.

Also, if we put in the year 2024. it preforms the calculation even the date is in the future, if we input month lower than 1 and higher than 12 there is also no error. If we input the date 1/1/0 it says it was 23 years ago.

Hope this helped to improve your code a bit! :)

Marked as helpful

0
Steve 1,170

@peanutbutterjlly

Posted

your solution looks AMAZING!

I tested it out and got NaN for the years months and days though 🥺.

functionality aside, I REALLY like the way this looks and animates 😍

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