Age Calculator using Javascript date object

Solution retrospective
In the course of building this project, I learnt about the inbuilt JS date fucntion. Throughout this project, I worked with Date function. It is really an opener. Building this age calculator, I must say improved my logical thinking when it comes to JS, looking at a problem and analysing it. I beleive building more projects like this will help me as I continue in this journey
What challenges did you encounter, and how did you overcome them?This project challenged me so much when it comes to input validation and writting a DRY code. I dont know if I have ever written a code as DRY as this before. The validation wasn't easy at all. I ended up with lots of conditions that made the code tacky. Modifying the code into what it is now, I must say was really challenging for me. But I am happy I did it finally. I so much appreciate Andrew Ezeani who came through for me when it seems everything wasnt working again.
What specific areas of your project would you like help with?I would appreciate suggestions on how I can write a better and DRY Javascript code especially in the input validation aspect.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Chinemerem Ugbaja's solution.
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