Answers for "how to check if the email id is validjs"

4

how to validate an email address in javascript

function validateEmail(email) 
    {
        var re = /\S+@\S+\.\S+/;
        return re.test(email);
    }
    
console.log(validateEmail('[email protected]'));
Posted by: Guest on June-18-2020

Code answers related to "how to check if the email id is validjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language