0 / 60 seg.

How would you validate that an email is valid using a regular expression in JavaScript?

const email = document.getElementById('email').value;