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 app

roopxx 120

@roopxx

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


What are you most proud of, and what would you do differently next time?

I'm most proud of the comprehensive date validation I implemented. It was a complex task to account for all the edge cases, such as invalid dates and future dates, but I managed to create a robust validation system. Next time, I would like to improve the user experience by adding animations to the age calculation results, making the app more dynamic and engaging.

What challenges did you encounter, and how did you overcome them?

The biggest challenge I faced was calculating the age in years, months, and days accurately. Working with dates can be tricky due to the varying number of days in each month and leap years. I overcame this by thoroughly researching the Date object in JavaScript and implementing a solution that accounts for these variations.

What specific areas of your project would you like help with?

I would appreciate feedback on my date validation code. I'm wondering if there's a more efficient or cleaner way to handle all the edge cases. Also, I'd like to know if there are better ways to structure my JavaScript code to make it more readable and maintainable. P.S: I think it's not clean code as I completed this challenge hastily without adding any comments or properly naming variables xD..

Community feedback

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