Email ID Domain Periksa JavaScript

var myemail = '[email protected]'

if (/@yahoo.com\s*$/.test(myemail)) {
   console.log("it ends in @yahoo");
} 
Real Rat