Solution with input validations and output animation

Solution retrospective
A compact solution for checking the validity of days/month combination. Chat GPT provided ideas. Sometimes , dilemma arises regarding days elapsed since the end of the previous month. Some convention adopted, as explained on top of the script.js. The outputs are cleared by an onfocus() event. This makes sure the results are from the latest calculation.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Guillermo Dominguez'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