Trying Javascript time functions

Solution retrospective
In this solution I tried the time functions of Javascript such as setInterval() for the first time. I also wanted to ask how to efficiently write code for detecting errors in card number. I know I could just plug in a bunch of conditionals to check and rectify stuff but I just want to find out if it can be done in an easier manner.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Aaryan_Urunkar'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