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

Age Calculator App | Matthew B

MrByford 80

@MrByford

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


1. Logic Improvement: I've noticed my code has become a bit tangled in what I've affectionately termed "IF Hell." If anyone has suggestions on how I can refactor my code to make it more elegant and reduce the reliance on conditional statements, I'd love to hear your thoughts.

2. Responsive Design: I've done my best to make the project responsive, especially when it comes to adapting UI elements to different screen sizes. However, I'm eager to learn more about best practices for styling inputs responsively. Any tips or insights on achieving a seamless user experience across devices would be fantastic!

3. Error Handling: I'm currently handling errors and toggling the '.error' class, but I believe there's room for improvement. Specifically, I'm looking for advice on how to optimize the process and remove the '.error' class when the function is called again unless the error condition persists.

Community feedback

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