Age Calculator App with Alpine.js and Tailwind.css

Solution retrospective
Working with dates.... The leap years make it hard. I ended up with a lot of javascript. Got tired of it and dicided to leave it at this. I know, I should clean up my functions. But in a real project I would never do this with JS. I would handle it with PHP. The struggle was worth it though. I am happy with the accurate results it gives, including the leap years.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @wendyhamel
I could not leave it... Cleaned up the js. Now it is accurate and easier to read the code.
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