Design comparison
SolutionDesign
Solution retrospective
Built with 🧱
- Semantic HTML5 markup
- SCSS
- JS
- Flexbox
- @media
- day.js
Error handling is not ideal but it just w o r k s
Also, you can calculate date from future, it's not a bug, it's feature 😉
Community feedback
- @AWBSCodePosted over 1 year ago
Your code is very clean but There is a mistake in your javascript code. I tested it. I calculated 8-10-2008 -->
14 years 6 months 17 days
But, result should be -->
14 years 6 months 2 days
this is my solution
Or you can test it on any website to calculate age.
1
Please log in to post a comment
Log in with GitHubJoin 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