Design comparison
Community feedback
- @mkborisPosted 8 months ago
This is impressive and the counting effects is really cool👌
1@Medido1Posted 8 months ago@mkboris Thank you so much!! this was the toughest challenge i did so far
0@mkborisPosted 8 months ago@Medido1 Same here I just submitted mine today, implementing the functionality was kinda tricky. I wasn’t able to implement the instance if the user inputs an invalid date e.g. 31/04/1991 (there are 30 days in April)
0 - @Medido1Posted 8 months ago
first i declared an array const month31days = [1, 3, 5, 7, 8, 10, 12]; every number represents a month that is 31days long then in my checkValidity Function i used a condition to check: if the current day > 30 and the current month is not included in the array it will be invalid. else if (!month31days.includes(month) && day > 30 && month > 1 && month < 12) { isValid = false;
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