Design comparison
SolutionDesign
Community feedback
- @MinamakhloufPosted about 2 years ago
Hi Artemii,
Congratulations on the project.
For form validation, it would be best to wrap the input and the button in a <form> element give the form an event listener that would run your function on a "submit" event. Aside from that, your JavaScript and regular expressions are solid.
Nice project.
Marked as helpful0
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