Avascript Regex E -mail

function Validate (InputEmail){
  if (InputEmail.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
    return true; 
  } else {
    return false; 
  }
}

console.log(Validate("[email protected]"));
Undefined