Ekstrak nama domain dari email

let email = '[email protected]';
le getDomain = email.substring(email.indexOf('@') + 1);

console.log(getDomain); // output - gmail.com
Combative Centipede