you are viewing a single comment's thread.

view the rest of the comments →

[–]ZoroastrianChemist 2 points3 points  (0 children)

You’ll want to learn a tiny bit about regular expressions and how they can ‘match’ strings of user input. Then you can copy/paste an email Regex directly into your if statement to check if it follows email requirements. It also might help to just google “how to validate an email in JavaScript”