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

Responsive Age Calculator App

Azzumar 340

@Azzumarithm

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


Overall, this challenge was pretty fun and I learned something new from it. I'm not completely sure if using css grid to position the button and line is the best way to do it, but I gave it a shot and it seems to be working. I made sure that the error handling is working as intended. I might even give this another go in react since I'm still getting the hang of it.

Calculating the age in terms of days, months, and years was a bit of a struggle for me, but I managed to figure it out in the end. Another challenge was figuring out how to position the button correctly.

As for my code, I think it's all good for the most part, but I'm a little uncertain about the accuracy of my calculations. I've double-checked them and they seem to be on point, but any feedback is much appreciated.

Community feedback

Sm1le 280

@Sm1l

Posted

Hi! Check the function. For example, when entering the date 31.08.xxxx gives an error.

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