Design comparison
Solution retrospective
Can you suggest me to improve my code?
Community feedback
- @AyoubrabiaePosted about 1 year ago
Hi,
I've reviewed your code and had a look at the preview of your app. I must say you're doing a great job!
However, I noticed a minor bug. You're performing checks for the day, the month, and the year, which is excellent. But when it comes to the year, you're checking if it falls between 1900 and 2100. You can improve this by checking if the year is between 1900 and the current year using
new Date().getFullYear()
. This way, your code will remain valid over time.If you need any assistance, I'm here to help. Happy coding!
Marked as helpful1@foeiieofPosted about 1 year ago@Ayoubrabiae thank you, i'll get your comment to improvement my minor bug
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