Design comparison
SolutionDesign
Solution retrospective
I'd like to add better E-mail verification at a later time. It currently only checks if the input is empty.
Community feedback
- @IryDevPosted about 1 year ago
Hey @Afox9207, first of all, congrats on completing this challenge ๐
I have some advice in order to improve your solution :
- If you want better email verification you can use regex (regular expression) :
JS example email verification using regex (you can adapt it with your own code) :
function ValidateEmail(mail) { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value)) { return (true) } alert("You have entered an invalid email address!") return (false) }
I hope you'll find this helpful, above all your solution is great๐
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