//Provided by Youtube: CodingBite
let email='hello@example.com'
const handleSubmit = () => {
let mailformat = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/;
let Email = email.trimLeft()
Email != ''
? Email.match(mailformat)
? alert('Sucess')
: alert('Enter Correct Mail!')
: alert('Fill email first!')
}