Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let email = 'xyz@gmail.com';
- le getDomain = email.substring(email.indexOf('@') + 1);
- console.log(getDomain); // output - gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement