Submitted 9 months ago
Age calculator app using CSS Flex, Grid, JavaScript
@Antonvasilache
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
- The static webpage was fairly easy to create.
- Implemented the date manipulation in JS without using external libraries.
- Will probably look to make use of them in the future, to save time.
- Working out how to properly loop through elements to effectively manipulate the styles.
- Implementing the logical error conditions for different month durations and leap years - I started with the easy scenarios and built up gradually.
- Showing results only when the inputs are correct - added an invalid flag for each and conditioned the displaying to the value of all three flags.
Could use a way of refactoring some of the code, my success has been limited in that aspect. I would also like to see a more effective way of animating the results display.
Community feedback
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