// It's easy
const email = "123@123.com"
function ValidateEmail(mail) {
if (/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/.test(mail)) {
console.log("It's a valid email!")
}else{
console.log("Not a valid email :(")
}
}
ValidateEmail(email);