Design comparison
Solution retrospective
I mostly had difficulty working with functions, trying to connect them. I am not sure if I have done a good job, writing JS code. So please, check out my JS code, and let me know if I could have made my code cleaner or better.
Community feedback
- @AghlaAbdoPosted about 1 year ago
Great job
Hey, I just have some notes for you to consider, I noticed that you're trying to handle the dates yourself, setting the current dates, checking how many days in the month and if its a leap year or not.
You don't have to do all of that, you can just use the Date object to access the current date and validate whether the date is valid or not and much more, search for the Date object in Javascript to learn more.
Another thing, you need to remove the error when the user correct their input.
You can check my solution if you want to know how I handled that. Happy coding ;)
Marked as helpful1@YahyobekRahimovPosted about 1 year ago@Aghlaabdo I did not know there was a Date object. I will definitely check it out. Thanks for the feedback. Happy coding to you too
0
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