@Sm1l
Posted
Hi! Check the function. For example, when entering the date 31.08.xxxx gives an error.
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.
@Sm1l
Posted
Hi! Check the function. For example, when entering the date 31.08.xxxx gives an error.
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