24. Validate Email
Lesson 25 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to validate whether a given string is a valid email address.
Valid email is a string in the format:
{prefix}@{domain}.{domain suffix}
- Input:
<strong>"user@example.com"</strong> - Expected Output:
<strong>true</strong>
Try it yourself
function isValidEmail(email) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?