email id domain check javascript

Solutions on MaxInterview for email id domain check javascript by the best coders in the world

showing results for - "email id domain check javascript"
Rafael
13 May 2020
1var myemail = 'test@yahoo.com'
2
3if (/@yahoo.com\s*$/.test(myemail)) {
4   console.log("it ends in @yahoo");
5}