Advertisement
divanov94

Untitled

May 28th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function emailCheck() {
  2.             let email = prompt("enter a name");
  3.             let emailMask = /^[a-z0-9\.]*@[a-z0-9\.]*$/;
  4.            
  5.  
  6.            
  7.  
  8.  
  9.  
  10.             if (emailMask.test(email) == true) {
  11.                     alert("correct");
  12.                    
  13.             } else {
  14.                 alert("not corect");
  15.             }
  16.  
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement